Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 8th, 2020 152 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #заполним пропуски по столбцу kitchen_area медианой, соответственно общей площади
  2. median_kitchen_area = real_estate_data.pivot_table(index='total_area', values='kitchen_area', aggfunc='median')
  3.  
  4. #напишем цикл, чтобы заполнить пропуски в kitchen_area
  5. for i in median_kitchen_area.index:
  6.     real_estate_data.loc[real_estate_data['total_area'] == i, 'kitchen_area'] = real_estate_data.loc[real_estate_data['total_area'] == i, 'kitchen_area'].fillna(median_kitchen_area.loc[i, 'kitchen_area'])
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top