Below is the script that I am using
For reading file
excel = pd.ExcelFile('data.xlsx')
To get the different sheets I am using
excel.sheet_names
Let say the sheet_names are [A,B,C,D,E,F,G,H]. I am parsing each sheet_name to extract the data like this
df_A = excel.parse(sheet_name = 'A')
df_B = excel.parse(sheet_name = 'B')
Need to automate all dataframe creation in one go ? Any suggestion would be much appreciated!
excel_sheets = pd.read_excel(file_fullpath, sheetname=None), and access each sheet as a dataframe like this:excel_sheets['A'],excel_sheets['B'], instead of storing all different sheets as separate DF's.