GroupEventsBulk#
Data processor#
- class retentioneering.data_processors_lib.group_events_bulk.GroupEventsBulk(params)[source]#
Apply multiple grouping rules simultaneously. See also
GroupEvents
- Parameters:
- grouping_ruleslist or dict
If list, each list element is a dictionary with mandatory keys
event_name
andfunc
and an optional keyevent_type
. Their meaning is the same as forGroupEvents
.If dict, the keys are considered as
event_name
, values are considered asfunc
. Settingevent_type
is not supported in this case.
- ignore_intersectionsbool, default False
If
False
, aValueError
is raised in case any event from the input eventstream matches more than one grouping rule. Otherwise, the first appropriate rule fromgrouping_rules
is applied.
- Returns:
- Eventstream
Eventstream
with the grouped events according to the given grouping rules.
Eventstream#
- GroupEventsBulkHelperMixin.group_events_bulk(grouping_rules, ignore_intersections=False)[source]#
Apply multiple grouping rules simultaneously. See also
GroupEvents
- Parameters:
- grouping_ruleslist or dict
If list, each list element is a dictionary with mandatory keys
event_name
andfunc
and an optional keyevent_type
. Their meaning is the same as forGroupEvents
.If dict, the keys are considered as
event_name
, values are considered asfunc
. Settingevent_type
is not supported in this case.
- Returns:
- Eventstream
Eventstream
with the grouped events according to the given grouping rules.