我得到的数据行和插入到mysql的代码,res是我想要插入到mysql的数据。ProgrammingError: Failed processing format-parameters; Python 'series' cannot be converted to a MySQLtype 如何将数据帧中的数据添加到MySQL中
我有以下(a的子集) Pandas数据文件,我正试图上传到一个MySQL数据库:
下面是使用info()函数的数据的详细信息:对于添加的上下文,我以前使用以下代码将tourn_date和date列转换为日期时间格式:最后,下面是我用来将数据导入MySQL数据库的代码:
for index,values(%s,%s,%s,%s,%s)&qu