modelhub.Aggregate.unique_users
unique_users
(data, groupby=NotSet.token)Calculate the unique users in the Objectiv data
.
Parameters
data
(bach.dataframe.DataFrame) –bach.DataFrame
to apply the method on.groupby
(Union[List[Union[str, bach.series.series.Series]], str, bach.series.series.Series, sql_models.constants.NotSet]) – sets the column(s) to group by.- if not_set it defaults to using
ModelHub.time_agg
. - if None it aggregates over all data.
- if not_set it defaults to using
Returns
series with results.