1import pandas as pd
2pandas.read_excel(io, sheet_name=0, header=0, names=None,
3 index_col=None, usecols=None,
4 squeeze=False, dtype=None, engine=None,
5 converters=None, true_values=None,
6 false_values=None, skiprows=None,
7 nrows=None, na_values=None,
8 keep_default_na=True, verbose=False,
9 parse_dates=False, date_parser=None,
10 thousands=None, comment=None,
11 skipfooter=0, convert_float=True,
12 mangle_dupe_cols=True, **kwds)
13
14# Example
15pd.read_excel('tmp.xlsx', index_col=0)
1import pandas as pd
2
3sheet1, sheet2 = None, None
4with pd.ExcelFile("PATH\FileName.xlsx") as reader:
5 sheet1 = pd.read_excel(reader, sheet_name='Sheet1')
6 sheet2 = pd.read_excel(reader, sheet_name='Sheet2')
1import pandas as pd
2
3df = pd.read_excel (r'Path where the Excel file is stored\File name.xlsx')
1import pandas as pd
2
3data = pd.read_excel (r'C:\Users\Ron\Desktop\Product List.xlsx')
4df = pd.DataFrame(data, columns= ['Product'])
5print (df)
6