此报错,需要将pandas的某个日期或者时间列类型改为str【astype(str)】即可 。 参考Python to mysql 'Timestamp' object has no attribute 'translate'https://stackoverflow.com/questions/43108164/python-to-mysql-timestamp-object-has-no-attribute-translate df['date_'] = df['date_'].astype(str)