morpheus.utils.column_info.IncrementColumn

class IncrementColumn(name, dtype, input_name, groupby_column, period='D')[source]

Bases: morpheus.utils.column_info.DateTimeColumn

Subclass of DateTimeColumn, counts the unique occurrences of a value in groupby_column over a specific time window period based on dates in the input_name field.

Attributes
groupby_column

The column to group by.

period

The period to use when grouping.

Methods

_process_column(df: pandas.DataFrame) -> pandas.Series Count the unique occurrences and return the result as a Series.
static convert_pandas_dtype(dtype)[source]

Return the pandas type string of column.

get_input_column_types()[source]

Return a dictionary of input column names and types needed for processing. This is used for schema validation and should be overridden by subclasses.

get_pandas_dtype()[source]

Return the pandas type string for the currently set dtype.

Previous morpheus.utils.column_info.DistinctIncrementColumn
Next morpheus.utils.column_info.PreparedDFInfo
© Copyright 2024, NVIDIA. Last updated on Apr 11, 2024.