#选择任意一个属性出现空值的数据
test[test.T.isnull().any()] #文件名为test
#选择所有属性都出现空值的数据
test[test.T.isnull().all()] #文件名为test
#选择所有属性都有值的数据
test[~test.T.isnull().any()] #文件名为test
或者:
test[~test.T.isnull().all()] #文件名为test
python筛选空值的行
猜你喜欢
转载自blog.csdn.net/weixin_42747054/article/details/81300400
今日推荐
周排行