-
Notifications
You must be signed in to change notification settings - Fork 933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for append columns #1468
Comments
the related functions we have are
Does |
No it does not.
If we want to append data to a new column C which does not exist in the spreadsheet, and use
|
This is a nice feature ! I ran some tests and the google API does not behave exactly what we expect it to 😞 This is the sheet I start with:
I tries the API endpoint to append values (the exact same one as I got the following result:
it did take the list of values as a column, and append the value on a column (meaning first value in the list goes to the top of the column and the rest follow bellow on the same column). So I ran the exact same code again and got:
🤦 alright, in fact the API appends the values bellow any existing values, creating the necessary rows if needed, but always bellow on the next row anyway... I managed to get the following result:
but I had to set the column myself in the requested range, which is the opposite of what we want. The idea of If this feature is still useful to then we can plan it to the next minor release. just let us know 🙃 |
If the If we need to specify the range ourself, I think we can just leave it until we have a better solution. |
I understand, that's what I tried to do and it does not work this way 😞
I understand, then we'll leave it like this for now. I checked again and the google sheet API documentation is clear: values are appended after the last row of the table closing this issue for now, until we find a better way. |
Currently there are
append_rows
/append_row
method but we need something likeappend_cols
. There a real difficulty to append column data.The current steps are to get cell range from the last column, update each cells, update the worksheet.
If the sheet does not have enough columns, APIError are returned and we have to insert columns then try it all over again.
The text was updated successfully, but these errors were encountered: