DateTimeFeaturizer.__init__(features_to_extract=None, encode_as_categories=False, random_state=None, random_seed=0, **kwargs)[source]

Extracts features from DateTime columns

  • features_to_extract (list) – List of features to extract. Valid options include “year”, “month”, “day_of_week”, “hour”.

  • encode_as_categories (bool) – Whether day-of-week and month features should be encoded as pandas “category” dtype. This allows OneHotEncoders to encode these features.

  • random_state (int) – Deprecated - use random_seed instead.

  • random_seed (int) – Seed for the random number generator. Defaults to 0.