当前位置 博文首页 > LY的博客:df寻找nan空值TypeError: ufunc 'isnan' not supporte
不要用numpy 的 isnan 用pd.isna
index = df['A'].index[pd.isna(df['A'])]
即可找出index