目前我正在通过gspread- dataframe 将 DataFrames (Python/Pandas) 发送到 Google 电子表格目前我正在将一个 DataFrame 推送到一个 Google 电子表格。
我的代码是文档中的标准代码,如下所示:
from gspread_dataframe import get_as_dataframe, set_with_dataframe
import gspread
from oauth2client.service_account import ServiceAccountCredentials
scope = ['https://spreadsheets.google.com/feeds']
creds = ServiceAccountCredentials.from_json_keyfile_name('client_secret.json', scope)
google_client = gspread.authorize(creds)
sheet = google_client.open('User IDs').sheet1
我的问题:如果我想将多个数据框推送到同一个 Google 电子表格上的多个工作表,可以吗?
注意:我知道我可以制作单独的 Google 电子表格来保存多个数据帧,但我希望能够拥有一个包含多个工作表的电子表格。
谢谢