Sometimes, the CSV files contain the index as a first column and you may need to skip it when you read the CSV file. You can work like that:
import pandas as pd df = pd.read_csv("myfile.csv", index_col=0) df.reset_index(drop=True, inplace=True)
This snippet of code above, sets as index the first column of the CSV file and then it resets the index.