enter image description here I have file named Example.xls
in which i have data in tab sales
and purchase
.
We have data in both tab from Column A to E.
When i import these data through pandas module, i want that result like Column A to F where column F should display the name sheet name. How to display the name of sheet name in pandas module?
I am using code
all= pd.read_excel(Example.xlsx',sheet_name=['Sales','Purchas'])
enter image description here
and then
df= pd.concat(All[frame]for fram in All.keys())
and then after i want to put the name of tabs in my data frame "All" in the last column which is F respectively