我正在尝试使用Python对大型googlesheets工作簿中的工作表(即single tab
)进行排序。但是,我在执行请求时遇到一个错误:
"Invalid JSON payload received. Unknown name "sort_range": Cannot find field."
Python代码段:
SORT_AMEX_PLAT = {
"sortRange": {
"sheetId": AMEX_PLAT_SHEET_ID,
"startRowIndex": 1,
"endRowIndex": 20000,
"startColumnIndex": 0,
"endColumnIndex": 30,
"sortSpecs": [
{
"dimensionIndex": 0,
"sortOrder": "ASCENDING"
}
]
}
}
sortRequest = sheet.values().batchUpdate(spreadsheetId=SPREADSHEET_ID, body=SORT_AMEX_PLAT)
sortResponse = sortRequest.execute()
目前没有回答
相关问题 更多 >
编程相关推荐