Another UnicodeEncodeError when using pandas method to_sql with MySQL

后端 未结 2 1009
春和景丽
春和景丽 2020-12-21 00:48

I posted on stack overflow a few days ago with a similar problem (which was solved), and I\'m not sure what the proper etiquette is here, but I\'m making a new post.

2条回答
  •  Happy的楠姐
    2020-12-21 01:02

    \u2013 is an "en dash". Perhaps some word processor is creating that? Perhaps you would be happy enough with a simple -?

    See https://docs.sqlalchemy.org/en/latest/dialects/mysql.html#mysql-unicode

提交回复
热议问题