📅  最后修改于: 2022-03-11 14:46:54.279000             🧑  作者: Mango
df['date_minus_time'] = df["_id"].apply( lambda df :
datetime.datetime(year=df.year, month=df.month, day=df.day))
df.set_index(df["date_minus_time"],inplace=True)