AddNegativeEvents#

Data processor#

class retentioneering.data_processors_lib.add_negative_events.AddNegativeEvents(params)[source]#

Create new synthetic events in paths of all users having the specified event(s): negative_target_RAW_EVENT_NAME.

Parameters:
targetslist of str

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

funcCallable, default _default_func_negative

Filter rows with target events from the input eventstream.

Returns:
Eventstream

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

event_name

event_type

timestamp

negative_target_RAW_EVENT_NAME

negative_target

min(targets)

Notes

See Data processors user guide for the details.

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

A class with parameters for AddNegativeEvents class.

Eventstream#

AddNegativeEventsHelperMixin.add_negative_events(targets, func=None)[source]#

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

Parameters:
See parameters description

AddNegativeEvents

Returns:
Eventstream

Input eventstream with new synthetic events.