morpheus.utils.column_info.StringCatColumn

class StringCatColumn(name, dtype, input_columns, sep)[source]

Bases: morpheus.utils.column_info.ColumnInfo

Subclass of ColumnInfo, concatenates values from multiple columns into a new string column separated by sep.

Attributes
input_columnsList[str]

The columns to concatenate.

sepstr

The separator to use when joining the values.

Methods

_process_column(df: pandas.DataFrame) -> pandas.Series Concatenate the values from the input columns 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.RenameColumn
Next morpheus.utils.column_info.StringJoinColumn
© Copyright 2023, NVIDIA. Last updated on Feb 2, 2024.