0

I have a csv file on which i need to work in my jupyter notebook ,even though i am able to view the contents in the file using the code in the picture

When i am trying to convert the data into a data frame i get a "no columns to parse from file error"

i have no headers. My csv file looks like this and also i have saved it in the UTF-8 format

enter image description here

enter image description here

1
  • if you want to use pandas, you can use pd.read_csv()
    – anky
    Commented Jun 14, 2019 at 7:23

1 Answer 1

2

Try to use pandas to read the csv file:

df = pd.read_csv("BON3_NC_CUISINES.csv)
print(df)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.