I have a Python script that pulls data from a MS Access database, concatenates the data to the end of my Google Sheets dataframe, and then pushes the updated dataframe back to the Google Sheet. The process for my 6 other worksheets works fine but this worksheet keeps giving me the Unicode Error when I try to push the dataframe to Google Sheets yet I am able to print the dataframe without issues. If anybody has any ideas on how to fix this I would appreciate it! (I have replaced the sheet and worksheet name with placeholders) I believe the issue might have something to do with the fullAddress data from the sql query that concatenates the address together but I'm not sure.
The line that is throwing the error is gd.set_with_dataframe(whsl_sheet, whsl_updated, include_column_header=True)
The Traceback message is "Traceback < module > set_with_dataframe _cellrepr 'UnicodeEncodeError: 'ascii' codec can't encode character u'\u2026' in position 48: ordinal not in range(128)"
whsl_sheet = client.open('Google Sheet Name').worksheet('Worksheet Name')
whsl_query = "SELECT Orders.Company, Orders.OrderDate, CONCAT(Address, ' ', Address2, ', ', City, ', ', State, ' ', Zip) AS fullAddress, Orders.RefName, Orders.SourceOrderID, Orders.ProductTotal, Orders.GrandTotal \
FROM Orders WHERE CAST(OrderDate as Date) = CAST(getdate() AS Date) AND CartID = 11"
df_whsl = pd.read_sql(whsl_query, cnxn)
df_whsl.rename(columns={'Company': 'ACCOUNT NAME', 'OrderDate': 'ORDER DATE', 'fullAddress': 'SHIPPING ADDRESS', 'RefName': 'REP NAME', 'SourceOrderID': 'Order #', 'ProductTotal': 'TOTAL ORDER WHSL$ (MERCH ONLY)', \
'GrandTotal': 'NOT USED FOR COMMISSION PAY'}, inplace=True)
whsl_existing = gd.get_as_dataframe(whsl_sheet)
whsl_existing2 = whsl_existing.dropna(how='all', axis=1)
whsl_existing3 = whsl_existing2.dropna(how='all')
whsl_updated = pd.concat([whsl_existing3, df_whsl], ignore_index=True, sort=False)
gd.set_with_dataframe(whsl_sheet, whsl_updated, include_column_header=True)