I have a pandas dataframe I loaded via read_csv that I am trying to push to a database via to_sql when I attempt
df.to_sql(\"assessmentinfo_pivot\", util.ENGINE)
I have solved the issue changing the character set in MySQL database (UTF-8) and adding this to the pymysql connection: charset='utf8'.
charset='utf8'