Numpy isnan() fails on an array of floats (from pandas dataframe apply)

后端 未结 4 1053
清酒与你
清酒与你 2020-11-30 21:04

I have an array of floats (some normal numbers, some nans) that is coming out of an apply on a pandas dataframe.

For some reason, numpy.isnan is failing on this arra

4条回答
  •  不知归路
    2020-11-30 21:38

    Make sure you import csv file using Pandas

    import pandas as pd
    
    condition = pd.isnull(data[i][j])
    

提交回复
热议问题