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 panda as pd
2
3file_csv = pd.read_csv("file path") ## as csv format
4file_excel = pd.read_excel("file path") ## as excel format
5file_json = pd.read_json("file path") ## as json format
6file_html = pd.read_html("file path") ## as html format
7file_localClipboard = pd.read_clipboard("file path") ## as clipboard format
8file_MSExcel = pd.read_excel("file path") ## as excel format
9file_HDF5 = pd.read_hdf("file path") ## as hdf5 fomrmat
10file_Feather = pd.read_feather("file path") ## as feather format
11file_msgpack = pd.read_msgpack("file path") ## as msgpack format
12file_stata = pd.read_stata("file path") ## as stata format
13file_SAS = pd.read_sas("file path") ## as SAS format
14file_paythonPickle = pd.read_pickle("file path") ## as paython_pickle format
15file_SQL = pd.read_sql("file path") ## as sql format
16file_google_big_query = pd.read_gbq("file path") ## as google big query
1import pandas as pd
2
3df = pd.read_csv (r'Path where the CSV file is stored\File name.csv')
4print (df)
5
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