I am new to python and I am currently trying to create a dataframe by reading specific sheet from about 20 spreadsheets. However, some of the spreadsheets have a different name to the tab I want to get data from.
I know that the tabs are named 'A' or 'AA'
I would like to know if there is a way I can pass the two names in the pandas read_excel as the names vary in some sheet. I am essentially looking for something like
df = pd.read_excel('file.xlsx', sheet_name = 'A' or 'AA')
if I pass the two names with an or, it returns an error. Is there a way for read_excel function to get data from a sheet named either 'A' or 'AA' in the excel file?
Thank you.