How to replace space, empty, N/A, na and NA with NaN in csv using python?

后端 未结 0 1143
小蘑菇
小蘑菇 2020-11-30 05:23

I have this code which replaces all spaces/gaps within my data structure with NaN:

replace_spaces = data.replace(r\'^\\s*$\', np.nan, regex=True)

相关标签:
回答
  • 消灭零回复
提交回复
热议问题