Community
cancel
Showing results for 
Search instead for 
Did you mean: 
MNISA2
Beginner
1,295 Views

Pandas read error

Hello,

Pardon me for this trivial question.

I am trying to read a csv file using pd.read_csv('filename.csv') argument and am getting the following error:

pandas.errors.ParseError: Error tokenizing data. C error: Expected 8 fileds in line 42957, saw 11

 

Seems like there is more no of row data in the said row(s) as compared to previous rows. However, when am trying to just check/run the code on my personal laptop, its loading properly without any issue(The said error is not being reported).

Can you help me understand why?

Regards,

0 Kudos
2 Replies
idata
Community Manager
78 Views

Hi,

 

 

Thanks for reaching out to us.

 

 

Could you please confirm from where you are trying to load the csv file. Is it through the jupyter hub or your python terminal?

 

 

We tried to load a csv a file from our end in jupyter hub and It was working fine. Please check if the issue is with your csv file.If the issue still persists, kindly share the csv file so that we could work on it.

 

 

Regards,

 

Nikhila

 

idata
Community Manager
78 Views

Hi Nisant,

 

 

Please confirm whether the issue got resolved. If not, kindly provide the asked details so that we can try it from our end.

 

 

Regards,

 

Nikhila
Reply