1import pandas as pd
2
3df = pd.read_csv (r'Path where the CSV file is stored\File name.csv')
4print (df)
1import pandas as pd #import pandas
2#syntax: pd.read_csv('file_location/file_name.csv')
3data = pd.read_csv('filelocation/fileName.csv') #reading data from csv
1import pandas as pd
2
3# ...[.].csv = your .csv file
4# datatype = dtype you want to define.
5read = pd.read_csv('......[.]csv',dtype={'name_column':'datatype'})
1import pandas as pd
2cereal_df = pd.read_csv("/tmp/tmp07wuam09/data/cereal.csv")
3cereal_df2 = pd.read_csv("data/cereal.csv")
4
5# Are they the same?
6print(pd.DataFrame.equals(cereal_df, cereal_df2))
7