我正在尝试将pandas数据框写入Google表格
# open google sheet where 'test' is the name of the project
sh = gc.open_all('test')
# update the first sheet with df, starting at cell B2 and second sheet with ds
wks = sh[:-1]
wks.set_dataframe(df, (1, 1))
每次运行此应用程序时,都会出现此错误:
wks.set_dataframe(df, (1, 1))
AttributeError: 'list' object has no attribute 'set_dataframe'
在pygsheets中似乎无法识别set_dataframe
有人遇到此错误或知道是什么问题吗?