我有一个数据帧数据框。代码就是这样写的
df.isnull().mean().sort_values(ascending = False)
这是部分输出-
inq_fi 1.0
sec_app_fico_range_low 1.0
我想知道它是怎么工作的?在
如果我们使用,df.isnull()
它将为每个单元格返回True或False。mean()
将如何给我们正确的输出。我的目标是找出所有列中空值的百分比。以上输出表示inq_fi和sec_app_fico_range_low具有所有缺失值。在
我们也不是按sort\u值传递的吗?在
Tags:
分解如下:
也就是说,一个有价值的专栏:
^{pr2}$评估为:
解释为:
导致:
相关问题 更多 >
编程相关推荐