Skip to content

featurebyte.Target.dt.day

day: Target

Description

Returns the day component of each element. This is also available for Targets containing timedelta values, which is a result of taking the difference between two timestamp Targets.

Returns

  • Target
    Target containing the day of week component values

Examples

Compute the day component of a timestamp column:

>>> target = catalog.get_target("target_latest_invoice_timestamp")
>>> target_timestamp_day = target.dt.day