Explore and visualize the Iris dataset using Python to understand feature relationships, distributions, and potential outliers.
The Iris dataset contains 150 samples of iris flowers, with 4 numerical features and 1 categorical target variable:
sepal_lengthsepal_widthpetal_lengthpetal_widthspecies(target variable: Setosa, Versicolor, Virginica)
Dataset source: Seaborn Repository
- Python
- Pandas
- Matplotlib
- Seaborn
- Loaded dataset using pandas.
- Inspected dataset using
head(),info(), anddescribe(). - Visualized data using:
- Scatter plots to analyze feature correlations.
- Histograms to check distributions.
- Box plots to detect outliers.
- None (exploratory data analysis only)
- Dataset shape:
(150, 5) - 3 species: Setosa, Versicolor, Virginica
- Petal length & width show clear clusters (best for classification)
- Setosa does not overlap with other species
- Few outliers detected in sepal width
- All features are numerical; no missing values