-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
gspread-pandas' Sheet
class has implemented some logic to know when sheet metadata needs to be refetched - cf refresh_spread_metadata
. However, the current implementation fails to make use of its potential. When accessing a multi-sheet spread using sheet_to_df
, debug logs show that the spreadsheet's metadata endpoint is hit multiple times - in my example, 9 times to fetch 2 sheets.
I have created a standalone pytest that reproduces this behaviour: https://gist.github.com/mephinet/7415a4641a65fbf0d51f0eae11ee21dc
I failed to add it to the betamax'ed test suite because I ran into timeouts...
Tested with gspread-pandas version 3.2.3 on Arch Linux, as well as with the git master.
Metadata
Metadata
Assignees
Labels
No labels