使用pandas库在Python中读取CSV文件时遇到的错误及其解决方案
发布时间
阅读量:
阅读量
python中pandas读取csv文件出现的问题
在先前进行数据训练的过程中,当采用pandas工具导入.csv格式的数据集时,遇到了以下问题:
Traceback (most recent call last):
File "pandas\_libs\parsers.pyx", line 1050, in pandas._libs.parsers.TextReader._convert_tokens
TypeError: Cannot cast array data from dtype('O') to dtype('float64') according to the rule 'safe'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:/software/Python/project/bp-pso/particle_network.py", line 345, in <module>
TRAIN, TEST = load_data('./data/Data
全部评论 (0)
还没有任何评论哟~
