问题:时间戳类型数据,落地数据库出现问题
mysql.connector.errors.ProgrammingError: Failed processing format-parameters; Python 'timestamp' cannot be converted to a MySQL type
解决:
把dataframe 类型为时间戳那一列 转为str
dayMoney['dateTime'] = dayMoney['dateTime'].astype('str')
问题:时间戳类型数据,落地数据库出现问题
mysql.connector.errors.ProgrammingError: Failed processing format-parameters; Python 'timestamp' cannot be converted to a MySQL type
解决:
把dataframe 类型为时间戳那一列 转为str
dayMoney['dateTime'] = dayMoney['dateTime'].astype('str')