What do you want to save?
Add Code snippet
New code examples
-
-
Python 2021-11-05 11:39:11
def conditional_impute(input_df, choice='median')
def conditional_impute(input_df, choice='median'): new_df = input_df.copy() if choice == 'median': new_df['Age'] = round(new_df.groupby(['Sex', 'Pclass'])['Age'].transform(func = lambda x: x.fillna(x.median())),1) elif ch... Add solution
Best helpers
Ranking is empty