Skip to content

featurebyte.Feature.dt.microsecond

microsecond: Feature

Description

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

Returns

  • Feature
    Feature containing the microsecond component values

Examples

Compute the millisecond component of a timestamp column:

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