woodwork.logical_types.Datetime#
- class woodwork.logical_types.Datetime(datetime_format=None, timezone=None)[source]#
Represents Logical Types that contain date and time information.
- Parameters:
datetime_format (str) – Desired datetime format for data
Examples
["2020-09-10", "2020-01-10 00:00:00", "01/01/2000 08:30"]
Methods
__init__
([datetime_format, timezone])transform
(series[, null_invalid_values])Converts the series data to a formatted datetime.
validate
(series, *args, **kwargs)Validates that a logical type is consistent with the series dtype.
Attributes
datetime_format
primary_dtype
standard_tags
type_string