I am trying to read an xlsx file into a pandas df without downloading it but I am having issues.
I have tried read_excel while parsing the URL with sheet_id but encountered the following error that blocks me.
url = f"https://docs.google.com/spreadsheets/d/{sheet_id}/export"
file_df = pd.read_excel(url, engine='openpyxl')
error:
zipfile.BadZipFile: File is not a zip file
I have a service account as authentication(should be enough) and can not wish to use a bearer token as a solution like this suggests.
Any help would be much appreciated.