其他分享
首页 > 其他分享> > 处理 read_csv 报错 OSError:Initializing from file failed

处理 read_csv 报错 OSError:Initializing from file failed

作者:互联网

 

 

df=pd.read_csv("X-go报表_交易20191118.csv")
print(df.info())

  File "pandas/_libs/parsers.pyx", line 394, in pandas._libs.parsers.TextReader.__cinit__ (pandas\_libs\parsers.c:4209)
  File "pandas/_libs/parsers.pyx", line 712, in pandas._libs.parsers.TextReader._setup_parser_source (pandas\_libs\parsers.c:8895)
OSError: Initializing from file failed

  解决方案:

df=pd.read_csv("X-go报表_交易20191118.csv",engine="python")
print(df.info())

 

标签:OSError,df,failed,parsers,报错,read,libs,csv,pandas
来源: https://www.cnblogs.com/wqbin/p/11881398.html