Skip to content

featurebyte.Feature.dt.millisecond

millisecond: Feature

Description

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

Returns

  • Feature
    Feature containing the millisecond component values

Examples

Compute the millisecond component of a timestamp column:

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