How do I get a summary count of missing/NaN data by column in 'pandas'?

后端 未结 5 1509
梦谈多话
梦谈多话 2020-12-23 17:06

In R I can quickly see a count of missing data using the summary command, but the equivalent pandas DataFrame method, describe

5条回答
  •  生来不讨喜
    2020-12-23 17:44

    As a tiny addition, to get percentage missing by DataFrame column, combining @Jeff and @userS's answers above gets you:

    df.isnull().sum()/len(df)*100
    

提交回复
热议问题