Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- data['days_imployed'] = data.groupby('income_type')['days_employed'].transform(lambda x: x.fillna(x.median()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement