modelhub.Aggregate.top_product_features
top_product_features
(data, location_stack=None, event_type='InteractiveEvent')Calculate the top used features in the product.
Parameters
data
(bach.dataframe.DataFrame) –bach.DataFrame
to apply the method on.location_stack
(modelhub.series.series_objectiv.SeriesLocationStack) – the location stack- can be any slice of a
modelhub.SeriesLocationStack
type column - if None - the whole location stack is taken.
- can be any slice of a
event_type
(str) – event type. Must be a valid event_type (either parent or child).
Returns
bach DataFrame with results.