Fill the null values in the dataframe with condition
traindf[traindf['Gender'] == 'female']['Age'].fillna(value=femage,inplace=True)
I've tried to update the null values in the age column in the dataframe with the mean values.Here I tried to replace the null values in the age column of female gender with the female mean age.But the column doesn't get updated.why?
Category Data Science