Skip to content

featurebyte.Target.dt.week

week: Target

Description

Returns the week component of each element.

Returns

  • Target
    Target containing the week component values

Examples

Compute the week component of a timestamp column:

>>> target = catalog.get_target("target_latest_invoice_timestamp")
>>> target_timestamp_week = target.dt.week