Imputation didn't work on missing values columns

28 Views Asked by At

I have this dataset for personal exercise, there are quite a lot of missing values in the dataset and since I wanted to do a model using this dataset, I tried to use imputation as follows:

flight_2['WORK_PROVINCE'].fillna(flight_2['WORK_PROVINCE'].mode(), inplace=True)

but when I did the fillna it didn't change/replace my missing values, when I check it:

flight_2['WORK_PROVINCE'].isna().sum()

the missing values stays at 3240

I'm expecting the missing values will be replaced by my fillna which is not

0

There are 0 best solutions below