AddPositiveEvents#

Data processor#

class retentioneering.data_processors_lib.add_positive_events.AddPositiveEvents(params)[source]#

Create new synthetic events in paths of all users having the specified events: positive_target_RAW_EVENT_NAME

Parameters:
targetslist of str

Define the list of events we consider positive. If there are several target events in a user path, the event with the minimum timestamp is taken.

funcCallable, default _default_func

Filter rows with target events from the input eventstream.

Returns:
Eventstream

Eventstream with new synthetic events only added to users who fit the conditions.

event_name

event_type

timestamp

positive_target_RAW_EVENT_NAME

positive_target

min(targets)

Notes

See Data processors user guide for the details.

class retentioneering.data_processors_lib.add_positive_events.AddPositiveEventsParams(*, targets, func=<function _default_func>)[source]#

A class with parameters for AddPositiveEvents class.

Eventstream#

AddPositiveEventsHelperMixin.add_positive_events(targets, func=None)[source]#

A method of Eventstream class that creates new synthetic events in paths of all users having the specified events - positive_target_RAW_EVENT_NAME.

Parameters:
See parameters description

AddPositiveEvents

Returns:
Eventstream

Input eventstream with new synthetic events.