Error 'Invalid values[1][0]: list_value' when i try append numbers to a list in Python and send that list to a Google Sheets column
In your script, values = ((para_enviar_conjunto),)
is ([[21], [79]],)
. I thought that this might be the reason of your issue. So in this case, how about the following modification?
From:
value_range_body = {
'majorDimension': 'ROWS',
'values': values
}
To:
value_range_body = {
'majorDimension': 'ROWS',
'values': para_enviar_conjunto
}
- In this case, you can remove
values = ((para_enviar_conjunto),)
.