当前位置 博文首页 > LY的博客:df寻找nan空值TypeError: ufunc 'isnan' not supporte

    LY的博客:df寻找nan空值TypeError: ufunc 'isnan' not supporte

    作者:[db:作者] 时间:2021-08-02 12:43

    不要用numpy 的 isnan 用pd.isna

    index = df['A'].index[pd.isna(df['A'])]

    即可找出index

    cs
    下一篇:没有了