Skip to content

featurebyte.Target.dt.day_of_week

day_of_week: Target

Description

Returns the day-of-week component of each element. The day of week is mapped to an integer value ranging from 0 (Monday) to 6 (Sunday).

Returns

  • Target
    Target containing the day of week component values

Examples

>>> target = catalog.get_target("target_latest_invoice_timestamp")
>>> target_timestamp_day_of_week = target.dt.day_of_week