解决错误:pandas.read_csv() 报错 OSError: Initializing from file failed
pandas.read_csv() 报错 OSError: Initializing from file failed,一般由两种情况引起:
1、函数参数为路径而非文件名称
2、文件路径带中文。
解决办法,添加engine=‘python‘:
pd.read_csv(r‘F:\训练\train.csv‘,engine=‘python‘)
相关推荐
huavhuahua 2020-11-20
千锋 2020-11-15
CloudXli 2020-11-03
PythonMaker 2020-10-27
文山羊 2020-10-20
higher0 2020-10-15
夜斗不是神 2020-11-17
Yasin 2020-11-16
xiaoseyihe 2020-11-16
diyanpython 2020-11-12
chunjiekid 2020-11-10
wordmhg 2020-11-06
世事一场大梦 2020-11-17
xiaoseyihe 2020-11-16
Morelia 2020-11-03
文山羊 2020-10-31
comtop0 2020-10-31
pythonxuexi 2020-10-30