I have imported a CSV file in Python using pandas. Now when I try to print it, it displays the contents along with the index. I don’t want to print the index. How can I exclude the index and print only the contents?
This is the code I am using
import pandas as pd
filedata = pd.read_csv(“/home/user/data1”)
print (filedata)
Output:
1 Kia
2 Benz
3 Chevvy
4 Bugatti
5 Ford
6 Fiat