I have excel file with multiple sheets and I have to create dataframes for each sheet using pd.read_excel
. Post creation of dataframe I'd like to set header
, set_index
and drop few rows.
Is it possible to write a function to perform above operations in one go and create dataframes as sheet name?
Trying with
df=pd.read_excel('file.xlsx',sheetname="",header=0,skiprows=[1,2,3])