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

后端 未结 5 1570
梦谈多话
梦谈多话 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:50

    This isnt quite a full summary, but it will give you a quick sense of your column level data

    def getPctMissing(series):
        num = series.isnull().sum()
        den = series.count()
        return 100*(num/den)
    

提交回复
热议问题