Skip to content

featurebyte.Feature.dt.day

day: Feature

Description

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

Returns

  • Feature
    Feature containing the day of week component values

Examples

Compute the day component of a timestamp column:

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