how to read csv as dataframe in python code example Example: pandas read csv df = pd.read_csv('data.csv')