How to replace a value in pandas, with NaN?

后端 未结 6 1667
无人共我
无人共我 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:12

    okay I got it by :

     #========trying to replace ?
        newraw= rawfile.replace('[?]', np.nan, regex=True)
        print newraw[25:40]
    

提交回复
热议问题