You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to delete only rows and not any columns? Looking at the code it appears to assume the deleteColumns key is present. Would be super easy to modify, hmu if you want a pull request.
resource= {
"oauth2": creds,
"documentId": copy_id,
"tableIndex": 0,
"deleteRows": [3],
"deleteColumns": []
}
res=gdoctableapp.DeleteRowsAndColumns(resource)
print(res) # You can see the retrieved responses from Docs API.Traceback (mostrecentcalllast):
File"/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydevd_bundle/pydevd_exec2.py", line3, inExecexec(exp, global_vars, local_vars)
File"<string>", line8, in<module>File"/opt/miniconda3/envs/templating/lib/python3.7/site-packages/gdoctableapppy/gdoctableapp.py", line38, inDeleteRowsAndColumnsreturngdoctableapp(resource).deleteRowsAndColumns()
File"/opt/miniconda3/envs/templating/lib/python3.7/site-packages/gdoctableapppy/gdoctableapp.py", line728, indeleteRowsAndColumnsself.__deleteRowsAndColumnsMain()
File"/opt/miniconda3/envs/templating/lib/python3.7/site-packages/gdoctableapppy/gdoctableapp.py", line356, in__deleteRowsAndColumnsMainmaxDeleteCols=max(self.obj["params"]["deleteColumns"]) +1ValueError: max() argisanemptysequence
resource= {
"oauth2": creds,
"documentId": copy_id,
"tableIndex": 0,
"deleteRows": [3]
}
res=gdoctableapp.DeleteRowsAndColumns(resource)
print(res) # You can see the retrieved responses from Docs API.Traceback (mostrecentcalllast):
File"/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydevd_bundle/pydevd_exec2.py", line3, inExecexec(exp, global_vars, local_vars)
File"<string>", line7, in<module>File"/opt/miniconda3/envs/templating/lib/python3.7/site-packages/gdoctableapppy/gdoctableapp.py", line38, inDeleteRowsAndColumnsreturngdoctableapp(resource).deleteRowsAndColumns()
File"/opt/miniconda3/envs/templating/lib/python3.7/site-packages/gdoctableapppy/gdoctableapp.py", line728, indeleteRowsAndColumnsself.__deleteRowsAndColumnsMain()
File"/opt/miniconda3/envs/templating/lib/python3.7/site-packages/gdoctableapppy/gdoctableapp.py", line356, in__deleteRowsAndColumnsMainmaxDeleteCols=max(self.obj["params"]["deleteColumns"]) +1KeyError: 'deleteColumns'
The text was updated successfully, but these errors were encountered:
Is it possible to delete only rows and not any columns? Looking at the code it appears to assume the deleteColumns key is present. Would be super easy to modify, hmu if you want a pull request.
The text was updated successfully, but these errors were encountered: