Guest User

Untitled

a guest
Feb 27th, 2020
111
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. df_days_employed_median = df.groupby('income_type')['days_employed'].median()
  2. print(df_days_employed_median)
  3.  
  4. df.loc[df['income_type'] == 'безработный', 'days_employed'] = df.loc[df['income_type'] == 'безработный']['days_employed'].fillna(366413.652744)
  5.  
  6. df.loc[df['income_type'] == 'в декрете', 'days_employed'] = df.loc[df['income_type'] == 'в декрете']['days_employed'].fillna(-3296.759962)
RAW Paste Data