如何在熊猫中打开大的csv文件

时间:2020-09-24 11:44:43

标签: python-3.x pandas csv

我从社交媒体平台收集了数据,并将其存储在一个csv文件中,该文件中有大约180万条评论,我正尝试使用熊猫打开它。我在打开时使用引擎作为python,文件大小为122 MB,并且它的代码混合了注释和表情符号,但出现错误。

ParserError: NULL byte detected. This byte cannot be processed in Python's native csv library at the moment, so please pass in engine='c' instead

所以我尝试使用engine ='c',但是现在出现了另一个错误

ParserError: Error tokenizing data. C error: Buffer overflow caught - possible malformed input file.

0 个答案:

没有答案