morpheus.utils.column_info.DistinctIncrementColumn#
- class DistinctIncrementColumn(
- name,
- dtype,
- input_name,
- groupby_column='username',
- period='D',
- timestamp_column='timestamp',
Bases:
RenameColumnSubclass of
RenameColumn, counts the unique occurrences of a value ingroupby_columnover a specific time windowperiodbased on dates in thetimestamp_columnfield. Only increments the count when the value ininput_namechanges.- Attributes:
- groupby_columnstr
The column to group by.
- periodstr
The period to use when grouping.
- timestamp_columnstr
The column to use for determining the period.
Methods
convert_pandas_dtype(dtype)Return the pandas type string of column.
Return a dictionary of input column names and types needed for processing.
Return the pandas type string for the currently set
dtype.