Skip to content

featurebyte.Feature.dt.second

second: Feature

Description

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

Returns

  • Feature
    Feature containing the second component values

Examples

Compute the second component of a timestamp column:

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