Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. for column in ['living_area', 'kitchen_area', 'ceiling_height']:
  2.     for room in data_pivot_rooms.index:
  3.         df.loc[df['rooms'] == room, column] = df.loc[df['rooms'] == room, column].fillna(data_pivot_rooms.loc[room, column])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement