Pandas mengatur ulang baris berdasarkan indeks datetime
split_date = pd.datetime(2014,2,2)df_train = df.loc[df[‘day_time’] < split_date]df_test = df.loc[df[‘day_time’] >= split_date]
LuiBuoy