Skip to content

featurebyte.Target.dt.quarter

quarter: Target

Description

Returns the quarter component of each element.

Returns

  • Target
    Target containing the quarter component values

Examples

Compute the quarter component of a timestamp column:

>>> target = catalog.get_target("target_latest_invoice_timestamp")
>>> target_timestamp_quarter = target.dt.quarter