write a function to open and read a csv file code example Example: read csv python import pandas as pd data = pd.read_csv("filename.csv") data.head()