The data in the excels is saved in annual folders (2020, 2021, 2022). Each year has sub folders for the 12 months (01-2022, 02-2022, 03-2022) and each monthly folder has sub folders for each day (01-01-2022, 01-02-2022, 01-03-2022). The excels are saved for each day. I need to read data from a specific common tab of these excels.
This is the code i have so far; but its not giving me any output:
filepath = '\\\\MUMPRR09\\1-Sector Reports\\2022'
if filepath.endswith(".xlsm") and sheet_name("ABC"):
df = pd.read_excel(files,sheet_name='ABC')
a = df.iloc[0][0]
company.append(a)