处理数据的时候(进行归一化),出现报错:不能将字符串转为float。
ValueError: could not convert string to float:
查看数据类型为object和float,并没有str。于是乎,考虑object的数据有问题,将其转化为数值型(pd.to_numeric),又出现报错,显示某一行数据出现parse错误,将其删掉后,数据可以归一化。(查看此行数据发现温度没有值,但非空,也就是存在字符串空格的问题)
ndata['温度'] = pd.to_numeric(ndata['温度'])
ValueError: Unable to parse string " " at position 65813