This project performs data cleaning, preprocessing, and exploratory data analysis (EDA) on the Iris dataset.
The analysis focuses on understanding the dataset structure, ensuring data quality, visualizing feature distributions, and identifying relationships between numerical variables.
The project is organized into the following sections:
- Introduction
- Data Loading
- Data Cleaning & Preprocessing
- Exploratory Data Analysis (EDA)
- Insights & Conclusion
The objective of this project is to perform data cleaning and exploratory data analysis (EDA) on a given dataset in order to identify:
- Patterns and trends
- Summary statistics
- Relationships between numerical features
This section demonstrates fundamental data cleaning steps using Pandas, including:
- Loading the dataset
- Checking for missing values
- Identifying and removing duplicate records
- Standardizing categorical variables
- Imported required libraries
- Loaded the Iris dataset into a Pandas DataFrame for analysis
- Displayed the first few rows of the dataset
- Inspected dataset structure and data types using
.info()
This step helped confirm column names, data types, and overall dataset size.
- Checked for missing values across all columns
Result:
No missing values were found; therefore, no imputation or removal was required.
- Checked for duplicate records
- Removed duplicate rows to ensure data integrity
- Standardized the
speciescolumn by:- Converting all values to lowercase
- Removing extra whitespace
This ensures consistency and prevents categorical mismatches during analysis.
- Verified dataset shape after cleaning
- Reconfirmed that no missing values remain
At this stage, the dataset was fully cleaned and ready for analysis.
The dataset has been successfully cleaned and prepared.
- No missing values were present
- Duplicate rows were removed
- Categorical data was standardized for consistency
This task focuses on exploring the dataset to identify patterns, trends, and summary statistics through statistical analysis and visualization.
- Calculate summary statistics (mean, median, mode, standard deviation)
- Visualize data distributions using histograms and boxplots
- Analyze relationships using scatter plots
- Examine correlations between numerical features
Calculated:
- Mean
- Median
- Mode
- Standard Deviation
These statistics provide insight into the central tendency and variability of numerical features.
Visualization libraries used:
- Matplotlib
- Seaborn
Custom plotting parameters were applied to ensure clear and readable visuals.
Histograms were generated for all numerical features to examine:
- Distribution shape
- Spread
- Skewness
Insight:
This helps understand feature behavior and detect unusual distributions.
Boxplots were used to:
- Observe variability
- Identify potential outliers
This visualization highlights differences in feature ranges.
A scatter plot was created to analyze the relationship between:
- Sepal Length
- Petal Length
(with species-based color encoding)
Insight:
Clear clustering indicates strong feature separability among species.
- Computed correlation matrix for numerical features
- Visualized correlations using a heatmap
The heatmap highlights:
- Strong positive correlations
- Relationships useful for future predictive modeling
- Petal length and petal width show a strong positive correlation
- Sepal features exhibit weaker correlations
- Species are clearly separable, making the dataset suitable for classification tasks
This exploratory data analysis revealed meaningful relationships and patterns within the dataset.
The findings support feature selection and provide a strong foundation for future machine learning models.
All EDA visualizations were exported into a PDF report, including:
- A cover page with project details
- Histograms
- Boxplots
- Scatter plots
- Correlation heatmap
This project was completed as part of a task from my ongoing internship at Codveda Technologies, where I gained hands-on experience in data analytics and machine learning through practical, real-world projects.
Alex Mathias
🌐 LinkedIn: https://linkedin.com/in/mathias-alex-2a1873111
💻 GitHub: https://github.com/alexmatins234