cost 135 ms
使用 python 將 google apps 腳本連接或寫入 google sheet

[英]Using python to connect or write a google apps script to a google sheet

是否真的無法使用 Python 將 Google Apps 腳本(使用 JavaScript)直接連接到 Google 表格電子表格? 我問這更多是作為一個設計問題:是否可以將 Google Apps 腳本保存在文件中並簡單地使用 Python 將其連接到使用電子表格 ID 的 gsheets 電 ...

如何使用 python 在 google 表中獲取 append 數據?

[英]How do I append data in google sheet using python?

我正在嘗試從 IB api 下載數據並將其上傳到谷歌表格。 如果數據已經存在於工作表中,那么我希望將新數據添加到工作表中而不覆蓋以前的數據。 這是我到目前為止所做的: 我收到錯誤:AttributeError: 'Spreadsheet' object has no attribute 'valu ...

使用 pygsheets 批量更新驗證和格式化單元格

[英]Batch update validation and formatting cells using pygsheets

賞金將在 6 天后到期。 此問題的答案有資格獲得+50聲望賞金。 user4933正在尋找規范的答案: 目前的解決方案是可以接受的,但是我只想編寫所有格式並以簡單且普遍適用的樣式批量更新 gsheet。 我正在使用 pygsheets 並希望批量驗證單元格而不是遍歷每個單元格並迭代地進行。 我已 ...

使用 pygsheets 使用批量更新清除經過驗證的單元格

[英]clear validated cells using a batch update using pygsheets

我有一個 pygsheets 工作表,其中包含已填寫的單元格,並希望在將數據拉入 python 后清除單元格。 我的問題是,我已經驗證了具有特定數據格式的單元格,然后當我嘗試批量更新工作表時,單元格要么不會變空(如果我使用None進行批量更新),要么在我使用""時發生錯誤。 請你幫我更新單元格為空。 ...

使用 pygsheets 有條件地格式化單元格以 2 個字符串之一結尾

[英]Conditionally format cell to end with one of 2 strings using pygsheets

我正在使用 pygsheets 並且有一列我想有條件地格式化,以便它是以“@gmail.com”結尾的字符串或以“@yahoo.com”結尾的字符串。 它似乎適用於一個,但我不確定如何將其擴展到 2 個條件。 我瀏覽了這些資源,但無法弄清楚如何做到這一點。 條件類型 pygsheets 工作表. ...

使用 pygsheets 有條件地格式化 google 表格中的單元格

[英]Conditionally format cells in a google sheet using pygsheets

我正在嘗試學習如何使用 pygsheets 有條件地格式化工作表中的單元格。 這樣做的原因是只允許與 google 表格交互的最終用戶只能輸入格式正確的值。 例如,我們如何格式化工作表以便: 單元格 A2 到 A5 為 0 到 50 之間的數字。 單元格 B2 到 B5 是一個 email 地址(一 ...

python,pygsheets 問題 - 如何快速獲得列中每個單元格的顏色?

[英]python, pygsheets question - how to gain the color of each cell in a column, fast?

我有這段代碼,它檢查谷歌表格工作表中每個單元格的顏色。 沒關系,但是對於 1200 行,這樣做需要 400 秒,所以我想問問是否有人知道檢查列中每個單元格顏色的更好方法(我找不到如何只檢查 1 列,而不是整張紙),並將其放入列表中? 我可以只對 1 列使用 get_all_values() 嗎? ...

創建選項卡並使用 pygsheets 添加 N 行

[英]Create tab and add N rows with pygsheets

我想通過 pyghseets 創建一個空選項卡並添加 N 行,就像使用以下按鈕一樣: 在 pygsheets 中是否有一種簡單的方法可以做到這一點? 謝謝! 編輯: 我的基本代碼如下: import pygsheets client = ### # Please use your ...

關於 pygsheet 的問題

[英]Questions about pygsheets

我嘗試了三種不同的方法來更新谷歌表格的值,但它們都不起作用,我瀏覽了 pygsheet 文檔,但我仍然找不到解決方案。 它去了 然后我嘗試了 表明 之后我嘗試了crange 錯誤信息是 給我同樣的東西 我找到了文檔,它說'cell_list:一個:class: Cell對象 ...

在 pygsheets 中選擇負數的正確方法是什么?

[英]In pygsheets what is the proper way of selecting negative numbers?

我正在使用 pygsheets 來制定預算。 我希望能夠將所有負單元格存儲在某種字典中(我對 python 還不是很好) 我已經能夠選擇一個 DataRange 單元格,但是如何向其中添加過濾器? 例如, drange = pygsheets.DataRange(start='A1', work ...

我想在 gsheet 的特定選項卡中寫入數據

[英]I want to write data in a particular tab of a gsheet

我可以使用以下代碼在我的 Gsheet 中使用以下代碼提取數據。 #驗證將腳本連接到 GSHEET 的憑據 使用上面的代碼,每當有人移動工作表的位置時,代碼都會將數據寫入位置 3 的選項卡。我想將 wks =sh[3] 替換為將數據拉到特定名稱的代碼標簽。 例如,在工作簿中的datadump ...

如何通過 API 在 Google 表格上設置應用程序腳本?

[英]How can I set an app script on a Google Sheet via the API?

有沒有辦法通過 Google 表格 API 在新的 Google 表格上設置應用程序腳本? 我們使用pygsheets作為 Google 表格的 Python API 客戶端。 由於我們使用onSelectionChange觸發器用日期填充某些單元格,因此我們希望在電子表格中填充行后設置應用程序腳 ...

Pygsheets:無法使用 Google 服務帳戶將超過 200 個文件上傳到 Drive。 得到 403 錯誤

[英]Pygsheets: cannot upload more than 200-ish files to Drive with Google Service Account. Get 403 Error

我正在使用 pygsheets 來處理 Google Spreadsheets 和 Drive。 我需要上傳超過10000個文件到公司Drive,但是每次我使用服務賬戶時,我在上傳200個文件后就報錯。 報錯如下: 我檢查了我的雲控制台。 我不會在任何給定時間內過度使用對請求數量的限制。 我在每個請 ...

pygsheets get_all_records value_render = FORMULA 正在轉換為 int

[英]pygsheets get_all_records value_render = FORMULA is casting as int

我正在嘗試使用 pygsheets 和 get_all_records 方法從 Google 表格中提取數據和公式。 源數據如下所示,其中單元格 B2 為 =A2*3。 當我使用 get_all_values 方法時,我得到了正確的結果。 但是當我使用 get_all_records 時,單元格 ...

如何在 pygsheets 中使用 get_all_records() 維護公式?

[英]How to maintain formulas with get_all_records() in pygsheets?

我正在使用 pygsheets 來更新和操作 Google 工作表。 我使用get_all_records將數據導入字典列表,如下所示 -gsheetRecords = ws.get_all_records(empty_value = '', head = 1) # returns a list ...

從 Jupyter 筆記本中使用的 pygsheets 的身份驗證錯誤

[英]Authentication error with pygsheets used from Jupyter notebook

我正在嘗試在 Jupyter 筆記本中使用pyghsheets ,但我沒有讓它工作,而同一段代碼在ipython中運行良好。from pathlib import Path import pygsheets creds = Path(r"/path/to/client_secret.json") ...

2021-12-13 06:59:20   1   10    pygsheets  
日期作為 Gsheet API 使用 python 導出的 xlsx 文件的文件名 nming 約定的一部分

[英]Date as part of file name nming convention for Gsheet API exported xlsx file using python

我可以知道我需要在我的 python 腳本上添加/替換什么函數,這是我的問題我已經將 xlsx 文件從 gsheet API 導出到我的服務器,我需要添加一個帶有文件名和日期的通用文件名(例如 FILENAME20211107.xlsx) 這是我的代碼: ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM