本文主要是介绍CParserError: Error tokenizing data. C error: Buffer overflow caught - possible malformed input file,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
程序
import pandas as pd
df = pd.read_csv("data.csv", sep="\t")
报错
CParserError: Error tokenizing data. C error: Buffer overflow caught - possible malformed input file
解决
import pandas as pd
df = pd.read_csv(open('data.csv','rU'), sep="\t")
参考
https://github.com/pandas-dev/pandas/issues/11166
这篇关于CParserError: Error tokenizing data. C error: Buffer overflow caught - possible malformed input file的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!