Skip to content

featurebyte.Target.dt.month

month: Target

Description

Returns the month component of each element.

Returns

  • Target
    Target containing the month component values

Examples

Compute the month component of a timestamp column:

>>> target = catalog.get_target("target_latest_invoice_timestamp")
>>> target_timestamp_month = target.dt.month