Pandas探索缺失值
文章目录缺失值所在的列返回某列缺失值所在的行缺失值字典,{列:缺失行}参考:https://blog.csdn.net/m0_54650283/article/details/122382632缺失值所在的列df.isna().any()返回某列缺失值所在的行df.loc[df['A'].isnull()].index.tolist()缺失值字典,{列:缺失行}a = df.isnull().any()a = a.loc[a==True]columns = a.index.toli