📜  如何检查列是否有 na python 代码示例

📅  最后修改于: 2022-03-11 14:45:50.123000             🧑  作者: Mango

代码示例1
#Check for NaN under a single DataFrame column:
df['your column name'].isnull().values.any()
#Count the NaN under a single DataFrame column:
df['your column name'].isnull().sum()
#Check for NaN under an enire DataFrame:
df.isnull().values.any()