I am defining a pandas dataframe by reading an excel file saved locally:
df_names = pd.read_excel(r'path/NAMES.xlsx', "Sheet1")
I am using pandas. However the above line leads to this error:
raise ValueError("File is not a recognized excel file")
Any help would be greatly appreciated. I realise the fact it is a xlsx file complicates things but i don't really want to use xls files.