Fill missing values based on the condition of other columns
Fill missing values based on the condition of other columns Question: I have this large dataframe, illustrated below is for simplicity purposes. pd.DataFrame(df.groupby([‘Pclass’, ‘Sex’])[‘Age’].median()) Groupby results: And it have this data that needs to be imputed Missing Data: How can I impute these values based on the median of the grouped statistic The result that …