试试使用strftime函数,df['Date-Time'] = pd.to_datetime(df['Date-Time']).dt.strftime('%Y-%m-%d %H:%M:%S')进行转换。