// last time index. This event should be from a different session than
// the current last time index.
log.df["datetime"][5] = pd.Timestamp("2011-4-09 10:40:01")
log.df.sort_values(["datetime", "id"], inplace=True, kind="mergesort")
log.update_data(log.df)
entityset.add_last_time_indexes()
true_customers_lti = pd.Series([datetime(2011, 4, 9, 10, 40, 1),
After Change
// the current last time index.
log.df["datetime"][5] = pd.Timestamp("2011-4-09 10:40:01")
log.df = (log.df.set_index("datetime", append=True)
.sort_index(level=[1, 0], kind="mergesort")
.reset_index("datetime", drop=False))
log.update_data(log.df)
entityset.add_last_time_indexes()