gsheet.values_append() function: ValueError: Out of range float values are not JSON compliant?

202 views
Skip to first unread message

doll kwong

unread,
Jul 19, 2023, 3:52:44 AM7/19/23
to Google APIs Discovery Service Users
I am writing dataframe to a google sheet. it shows up error message: `ValueError: Out of range float values are not JSON compliant`. Both of the below code I tried:

`ws.update([df.columns.values.tolist()] + df.values.tolist())`
`spreadsheet.values_append("sheet_name", {"valueInputOption": "RAW"}, {"values": df_values})`

is it because the dataframe is too large, or there are other reasons? Thanks!
Reply all
Reply to author
Forward
0 new messages