I'm having a problem with uploading python pandas df to bigquery using the df.to_gbq function.The issue arises from non latin (and non ascii) chars in the df. when I try to upload the df I get this error:
'latin-1' codec can't encode characters in position 126-129: Body ('עמית') is not valid Latin-1. Use body.encode('utf-8') if you want to send it encoded in UTF-8.
even if the df encoding is utf-8, suggesting that the function converts to latin-1 prior to uploading to BQ and therefore can't handle any non -latin chars. I couldn't find any argument of the function that will allow me to change the encoding. I also tried to upload the same data from csv file and a utf-8 csv could be uploaded directly, but not when I first uploaded the data to pandas DF (using read_csv func) and then to BQ.
Any suggestions how to correctly upload this df to BQ ? Any workarounds (I just need it uploaded, not necessarily using pandas to_gbq)? thanks