Skip to content

featurebyte.Feature.dt.month

month: Feature

Description

Returns the month component of each element.

Returns

  • Feature
    Feature containing the month component values

Examples

Compute the month component of a timestamp column:

>>> feature = catalog.get_feature("CustomerLatestInvoiceTimestamp")
>>> feature_group = fb.FeatureGroup([feature])
>>> feature_group["TimestampMonth"] = feature.dt.month