1. Filled missing Age values with the median age (177 missing → 0)
2.Dropped the Cabin column (687 missing values, too sparse)
3.Filled missing Embarked with the most common port (2 missing → 0)
Result: 891 rows, 11 columns, no missing values in critical fields. Clean, consistent data ready for AI processing.
Like this project
Posted Apr 26, 2026
[Data cleaning using pandas (Titanic dataset) ]
Before analysis, I cleaned the Titanic dataset:
1. Filled missing Age values with the median age (177 missi...