read header of csv file in python code example Example: how to read a csv file in python import pandas as pd df=pd.read_csv('the_file.csv')