【发布时间】:2015-06-02 02:18:53
【问题描述】:
我正在使用 pandas.to_sql 将数据写入现有的 MySQL 表。该代码已经在 crontab 作业中运行了数周,没有失败。
我开始收到以下错误:ValueError: MySQL identifier cannot be fully numeric
我的代码:
thisweek.to_sql(name='bs_reporting_weeklymetrics', con = cnx, flavor = 'mysql', if_exists = 'append', index=False)
如您所见,表名不是数字。
【问题讨论】:
标签: python mysql python-2.7 pandas