Skip to content

featurebyte.Feature.dt.quarter

quarter: Feature

Description

Returns the quarter component of each element.

Returns

  • Feature
    Feature containing the quarter component values

Examples

Compute the quarter component of a timestamp column:

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