我可以在 GSpread 中控制 insert_row 的输出吗?
Can I control the output of insert_row in GSpread?
我已经使用 Gspread(https://github.com/burnash/gspread) 成功地将一些数据导入到 Gsheets 中。但是,我看到 insert_row 正在获取值和单元格详细信息。我可以控制它吗,我只想导入 'value' 而不是单元格详细信息?
worksheet.insert_row(cell_list, row)
<Cell R1C1 u'this is the value'>, <Cell R1C2 u'this is the value'>, <Cell R1C3 u"this is the value'>
我在 SO 上查看了一些与 gspread 相关的 posts,没有相似之处。这 post 让我有了一些见识 gspread or such: help me get cell coordinates (not value)
update_cells(list) 工作得很好(在给定范围内更新)但我无法插入新行或新列。现在,我正在使用这种方法 (update_cells()),它只为我获取值。谢谢!!
这有效!!
objects = Someapi.issues()
values = []
for issue in objects: #you can change the range here
values.append(issue.name)
print values #Ignore this statement, Just see what values are printed!!
worksheet.insert_row(values)
有人帮助了我。谢谢!!
我已经使用 Gspread(https://github.com/burnash/gspread) 成功地将一些数据导入到 Gsheets 中。但是,我看到 insert_row 正在获取值和单元格详细信息。我可以控制它吗,我只想导入 'value' 而不是单元格详细信息?
worksheet.insert_row(cell_list, row)
<Cell R1C1 u'this is the value'>, <Cell R1C2 u'this is the value'>, <Cell R1C3 u"this is the value'>
我在 SO 上查看了一些与 gspread 相关的 posts,没有相似之处。这 post 让我有了一些见识 gspread or such: help me get cell coordinates (not value)
update_cells(list) 工作得很好(在给定范围内更新)但我无法插入新行或新列。现在,我正在使用这种方法 (update_cells()),它只为我获取值。谢谢!!
这有效!!
objects = Someapi.issues()
values = []
for issue in objects: #you can change the range here
values.append(issue.name)
print values #Ignore this statement, Just see what values are printed!!
worksheet.insert_row(values)
有人帮助了我。谢谢!!