RemapSegment#

Data processor#

class retentioneering.data_processors_lib.remap_segment.RemapSegment(params)[source]#

Remap segment values for synthetic eventstream events.

Parameters:
namestr

A segment name to remap.

mappingstr
A pandas.Series containing mapping rules. The series index relates to old segment values,

and the values relate to new segment values.

Returns:
EventstreamType

Eventstream with remapped segment.

Eventstream#

RemapSegmentHelperMixin.remap_segment(name, mapping)[source]#

Rename segment in synthetic eventstream events.

Parameters:
namestr

A segment name to remap.

mappingstr
A pandas.Series containing mapping rules. The series index relates to old segment values,

and the values relate to new segment values.

Returns:
EventstreamType

Eventstream with remapped segment values.