問題:時間戳類型數據,落地數據庫出現問題
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')
class MetaCls(type): def __new__(cls, *args, **kwargs): print("in MetaCls") # return super(Meta