📜  isnull().mean() python 代码示例

📅  最后修改于: 2022-03-11 14:47:12.341000             🧑  作者: Mango

代码示例1
df.isnull()
#Mask all values that are NaN as True
df.isnull().mean()
#compute the mean of Boolean mask (True evaluates as 1 and False as 0)
df.isnull().mean().sort_values(ascending = False)
#sort the resulting series by column names descending