python dataframe 如何去除缺失值

df.dropna(axis=0, how='any', thresh=None, subset=None, inplace=False)

# axis 指 軸,0是行,1是列,

# how 是刪除條件:any 任意一個爲na則刪除整行/列,all 整行/列爲na才刪除

# inplace 是否在原DataFrame 上進行刪除,false爲否
相關文章
相關標籤/搜索