€12.15 – €15.02
- Loading the Dataset:
- Reads the dataset using
pandas
and checks for missing values withisnull().sum()
.
- Reads the dataset using
- Handling Missing Values:
- Numerical Features: Missing values are replaced with the mean of the respective column using
fillna()
. - Categorical Features: Missing values are replaced with the most frequent value (mode) using a loop.
- Numerical Features: Missing values are replaced with the mean of the respective column using
- Verification:
- Re-checks for missing values after imputation to ensure data integrity.
- Saving the Cleaned Data:
- Exports the cleaned dataset to a CSV file for further use.