【问题标题】:Parser Error Pandas while reading excel to dataframe将excel读取到数据框时解析器错误熊猫
【发布时间】:2020-05-09 13:49:11
【问题描述】:
ParserError: Error tokenizing data

def open_doc(datastream): #read with pandas CHECK
df = pd.read_csv(datastream, sep=";", encoding = "ISO-8859-1")  
return df

此函数以前用于不同的 Excel 数据集。

尝试在新脚本中重用它时突然收到此错误。 试过了:

 escapechar 

different delimiter

任何想法如何解决这个问题?

【问题讨论】:

    标签: python pandas dataframe error-handling


    【解决方案1】:

    解决了! 不得不重新启动 anaconda .. 现在感觉有点愚蠢:D

    【讨论】:

      猜你喜欢
      • 2014-08-21
      • 2013-07-23
      • 2018-02-08
      • 2017-02-14
      • 2015-06-10
      • 2020-12-14
      • 2021-11-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多