Suppose I have two datasets (corresponding to two entities in my entityset):
First one: customers (cust_id, name, birthdate, customer_since)
Second one: bookings (booking_id, service, chargeamount, booking_date)
Now I want to create a dataset with features built from all customers (no matter since when they are customer) but only bookings from the last two years.
How do I have to use the "last_time_index"? Can I set a "last_time_index" only to one entity? In this case only for the bookings entity, because I want ALL customers, but not all bookings.
If used this code to create the features:
feature_matrix, features = ft.dfs(entityset=es,
target_entity="customers",
cutoff_time= pd.to_datetime('30/05/2018'),
training_window = ft.Timedelta(2*365,"d"),
agg_primitives=["count"],
trans_primitives=["time_since","year"],
cutoff_time_in_index = True)