Re: Untitled

From Voluminous Hog, 2 Months ago, written in Python, viewed 72 times. This paste is a reply to Untitled from Marsel Galiev - view diff
URL Embed
Download Paste or View Raw
  1. for i in df['locality_name_no_type'].unique():
  2.     median= df.loc[df['locality_name_no_type'] == i, 'ceiling_height'].median()    
  3.     df.loc[ (df['locality_name_no_type'] == i) & (df['ceiling_height'].isna()), 'ceiling_height'] = median
  6. df['ceiling_height'].isna().sum()

Reply to "Re: Untitled"

Here you can reply to the paste above