带有多个逗号的熊猫第一个字段字符串

时间:2020-04-25 12:21:32

标签: python-3.x pandas

我的csv文件如下:

"Holy crap!! The, biggest assclown of a mayor on @TuckerCarlson pulling race card!! Get his ass outta office!!! #draintheswamp","885224"
"RT @dawseyslinstead: i just want to cry so fucking bad, look at them ","885225"

我想将此文件读入熊猫。但这会抛出ParserError: Error tokenizing data. C error: Expected 2 fields in line 104, saw 4

我知道标准sep=','是不正确的。有解决方法吗?

0 个答案:

没有答案