df.isnull()
返回DateFrame,元素为空或者NA就显示True,否则就是False
df.isnull().any()
当列有为空或者NA的元素,就为True,否则False
df.columns[iris.isnull().any()].tolist()
df.dropna(axis=0,how='all',inplace=True)
df.dropna(axis=1,how='all',inplace=True)
df['列名'].fillna(100,inplace= True)
method = ‘ffill’ : 是用每一列/行前面的值填充后面的空白
method = ‘bfill’: 是用每一列/行后面的值填充前面的空白