Skip to content

featurebyte.Feature.dt.day_of_week

day_of_week: Feature

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

  • Feature
    Feature containing the day of week component values

Examples

>>> feature = catalog.get_feature("CustomerLatestInvoiceTimestamp")
>>> feature_group = fb.FeatureGroup([feature])
>>> feature_group["TimestampDayOfWeek"] = feature.dt.day_of_week