To clean and preprocess the Titanic dataset for Machine Learning applications.
Titanic Dataset
- Python
- Pandas
- NumPy
- Matplotlib
- Seaborn
- Scikit-Learn
- Loaded the dataset using Pandas.
- Checked dataset shape, columns, and data types.
- Identified missing values.
- Filled missing Age values using median.
- Filled missing Embarked values using mode.
- Replaced missing Cabin values with "Unknown".
- Converted Sex and Embarked columns into numerical values using Label Encoding.
- Visualized outliers using boxplots.
- Removed outliers using the IQR method.
- Standardized Age and Fare columns using StandardScaler.
- Created boxplots for outlier detection.
- Generated a correlation heatmap.
- Saved the cleaned dataset as cleaned_titanic.csv.
- Titanic-Dataset.csv
- cleaned_titanic.csv
- task1.py
- README.md
Successfully cleaned and preprocessed the dataset, making it suitable for Machine Learning models.