How to replace a value in pandas, with NaN?

后端 未结 6 1665
无人共我
无人共我 2020-12-01 06:57

I am new to pandas , I am trying to load the csv in Dataframe. My data has missing values represented as ? , and I am trying to replace it with standard Missing values - NaN

6条回答
  •  情深已故
    2020-12-01 07:15

    There are many ways folks, this is best, if you figure that your CSV file has any object for NAN like "missing", just use

        rawfile = pd.read_csv("Property_train.csv", na_values=["missing"])
    

提交回复
热议问题