Pandas - Filtering None Values

前端 未结 3 1947
旧巷少年郎
旧巷少年郎 2020-12-13 08:39

I\'m using Pandas to explore some datasets. I have this dataframe:

I want to exclude any row that has a city value. So I\'ve tried:

new_df =         


        
3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-13 09:10

    Consider using isnull() to locate missing values

    all_df[all_df['City'].isnull()]
    

提交回复
热议问题