pandas import csv with forst column as index code example Example: pandas read csv df = pd.read_csv('data.csv')