Pandas - Filtering None Values
Consider using isnull()
to locate missing values
all_df[all_df['City'].isnull()]
Try this to select only the None
values for city column:
new_df = all_df['City'][all_df['City'] == "None"]
Try this to see all other columns which has the same rows of 'City'==None
new_df = all_df[all_df['City'] == "None"]
print(new_df.head()) # with function head() you can see the first 5 rows