morpheus.utils.column_info.RenameColumn#

class RenameColumn(name, dtype, input_name)[source]#

Bases: ColumnInfo

Subclass of ColumnInfo, adds the ability to also perform a rename.

Attributes:
input_namestr

The name of the input column.

Methods

_process_column(df: pandas.DataFrame) -> pandas.Series

Rename the column and return it 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.