🌈 搜索
📅  最后修改于: 2022-03-11 14:45:18.472000             🧑  作者: Mango
df['year'] = pd.DatetimeIndex(df['ArrivalDate']).year df['month'] = pd.DatetimeIndex(df['ArrivalDate']).month