LabelNewUsers#

Data processor#

class retentioneering.data_processors_lib.label_new_users.LabelNewUsers(params)[source]#

Create a new synthetic event for each user: new_user or existing_user.

Parameters:
new_users_listlist of int or list of str or all

If the list of user_ids is given - new_user event will be created for each user from the list. Event existing_user will be added to the rest of the users.

If all - new_user synthetic event will be created for all users from the input eventstream.

Returns:
Eventstream

Eventstream with new synthetic events, one for each user:

event_name

event_type

timestamp

new_user

new_user

first_event

existing_user

existing_user

first_event

Notes

See Data processors user guide for the details.

class retentioneering.data_processors_lib.label_new_users.LabelNewUsersParams(*, new_users_list)[source]#

A class with parameters for LabelNewUsers class.

Eventstream#

LabelNewUsersHelperMixin.label_new_users(new_users_list)[source]#

A method of Eventstream class that creates one of the synthetic events in each user’s path: new_user or existing_user .

Parameters:
new_users_listlist of int or list of str or all

If the list of user_ids is given - new_user event will be created for each user from the list. Event existing_user will be added to the rest of the users.

If all - new_user synthetic event will be created for all users from the input eventstream.

Returns:
Eventstream

Input eventstream with new synthetic events.