创建Timestamp类和Period类
Timestamp对象
import pandas as pd
from datetime import datetime
print(datetime(2019,10,21))
print(pd.Timestamp(datetime(2019,10,21)))
print(pd.Timestamp(datetime(2019,10,21,1,2,3)))
print(pd.Timestamp('2012-09-09 1:3:3'))
print(pd.Timestamp(2012,4,4))
转换为Timestamp对象
df1 = pd.read_csv(