Skip to content

featurebyte.Target.dt.year

year: Target

Description

Returns the year component of each element.

Returns

  • Target
    Target containing the year component values

Examples

Compute the year component of a timestamp column:

>>> target = catalog.get_target("target_latest_invoice_timestamp")
>>> target_timestamp_year = target.dt.year