0

I have school project to submit by Sunday and I have a problem here, CSV file

import pandas as PD
DF=PD.read_csv('C:\New folder\Book4.csv')
print(DF)

This isn't the entire code but this part is the only issue. I have 4 CSV files in total and only this one is not printing the middle column for some reason. I had this issue before when I was trying to print second csv file but that just printed correctly after I added the third and fourth(this one) CSV file and this one got the problem
please help.

Varun
  • 1
  • 2

1 Answers1

0

You probably have too many columns in this CSV. You can set the number of columns to print:

 pd.set_option('display.max_columns',40)

The above code will increase the maximum to 40 columns

gtomer
  • 5,643
  • 1
  • 10
  • 21