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_nameandfuncand 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_typeis not supported in this case.
- ignore_intersectionsbool, default False
If
False, aValueErroris raised in case any event from the input eventstream matches more than one grouping rule. Otherwise, the first appropriate rule fromgrouping_rulesis applied.
- Returns:
- Eventstream
Eventstreamwith 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_nameandfuncand 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_typeis not supported in this case.
- Returns:
- Eventstream
Eventstreamwith the grouped events according to the given grouping rules.