DropPaths#
Data processor#
- class retentioneering.data_processors_lib.drop_paths.DropPaths(params)[source]#
Filter user paths based on the path length, removing the paths that are shorter than the specified number of events or time.
- Parameters:
- min_stepsint, optional
Minimum user path length measured in the number of events.
- min_timeTuple(float, DATETIME_UNITS), optional
Minimum user path length and its unit of measure.
- Returns:
- Eventstream
Eventstreamwith events that should be deleted from inputeventstreammarked_deleted=True.
- Raises:
- ValueError
If both of
min_stepsandmin_timeare empty or both are given.
See also
TimedeltaHistPlot the distribution of the time deltas between two events.
UserLifetimeHistPlot the distribution of user lifetimes.
Notes
See Data processors user guide for the details.
Eventstream#
- DropPathsHelperMixin.drop_paths(min_steps=None, min_time=None)[source]#
A method of
Eventstreamclass that deletes users’ paths that are shorter than the specified number of events or cut_off.- Parameters:
- min_stepsint, optional
Minimum user path length measured in the number of events.
- min_timeTuple(float, DATETIME_UNITS), optional
Minimum user path length and its unit of measure.
- Returns:
- Eventstream
Input
eventstreamwithout the deleted short users’ paths.