evalml.pipelines.components.DateTimeFeaturizer.__init__

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

Extracts features from DateTime columns

Parameters
  • 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_seed (int) – Seed for the random number generator. Defaults to 0.

  • date_index (str) – Name of the column containing the datetime information used to order the data. Ignored.