import pandas as pd
df = pd.DataFrame({'year':[2015,2016],'month':[2,3],'day':[4,5]})print(df)print(pd.to_datetime(df))#
year month day
0201524120163502015-02-0412016-03-05
dtype: datetime64[ns]
2. 指定errors忽略 Out of bounds nanosecond timestamp , 或将报错datetime转为NaT