with open(file 'r') as csv_file in python code example Example: read csv python import pandas as pd data = pd.read_csv("filename.csv") data.head()