Skip to content

Commit 654266c

Browse files
authored
feat: create clean English version of Iris dataset notebook
Added Jupyter notebook for basic analysis of the Iris dataset. - Loaded data using sklearn and converted to DataFrame - Displayed structure, missing values, and summary statistics - Grouped by species to compute mean measurements - Included Markdown observations in English for clarity
1 parent c1e5b18 commit 654266c

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

iris_analysis.ipynb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Import libraries
2+
import pandas as pd
3+
from sklearn.datasets import load_iris
4+
5+
# Load the dataset
6+
iris = load_iris()
7+
df = pd.DataFrame(iris.data, columns=iris.feature_names)
8+
df["species"] = pd.Categorical.from_codes(iris.target, iris.target_names)
9+
10+
# Show first rows
11+
df.head()
12+
13+
# Dataset info and null value check
14+
df.info()
15+
16+
# Check for missing values
17+
df.isnull().sum()
18+
19+
# Summary of numeric features
20+
df.describe()
21+
22+
# Group by species and compute the mean
23+
df.groupby("species").mean()
24+

0 commit comments

Comments
 (0)