-1

I have this kind of error in jupyter notebook, is there something needs to be done?

error


ParserError Traceback (most recent call last) ~\AppData\Local\Temp\ipykernel_15164\57077545.py in ----> 1 pd.read_csv('datawisata.csv', skip_blank_lines=False)

apparently i have blank data from my travel.csv.

this is view of the blank

ParserError: Error tokenizing data. C error: Expected 1 fields in line 54, saw 2

any suggestions how to parse it ?? or maybe it can't be done so i need to change it into 'blank' words first?

Jessen Jie
  • 167
  • 1
  • 12

1 Answers1

-1

first thing this is pandas not numpy :p

second, you can keep blanck cells in pandas as empty string with the parameter keep_default_na=False as you can see in this answer here

you can do similarly in numpy as answere here

Arthur Caccavo
  • 98
  • 1
  • 10