阅读背景:

Pandas数据帧读取错误数据的read_csv

来源:互联网 

I want to read in a very large csv (cannot be opened in excel and edited easily) but somewhere around the 100,000th row, there is a row with one extra column causing the program to crash. This row is errored so I need a way to ignore the fact that it was an extra column. There is around 50 columns so hardcoding the headers and using names or usecols isn't preferable. I'll also possibly encounter this issue in other csv's and want a generic solution. I couldn't find anything in read_csv unfortunately. The code is as simple as this:I want to read in a very large csv (cannot be o




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: