morpheus.utils.column_info.DateTimeColumn

class DateTimeColumn(name, dtype, input_name)[source]

Bases: morpheus.utils.column_info.RenameColumn

Subclass of RenameColumn, specific to casting UTC localized datetime values. When incoming values contain a time-zone offset string the values are converted to UTC, while values without a time-zone are assumed to be UTC.

Methods

_process_column(df: pandas.DataFrame) -> pandas.Series Convert the values in the column to datetime 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.DataFrameInputSchema
Next morpheus.utils.column_info.DistinctIncrementColumn
© Copyright 2023, NVIDIA. Last updated on Feb 2, 2024.