Skip to content

featurebyte.Target.dt.microsecond

microsecond: Target

Description

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

Returns

  • Target
    Target containing the microsecond component values

Examples

Compute the millisecond component of a timestamp column:

>>> target = catalog.get_target("target_latest_invoice_timestamp")
>>> target_timestamp_microsecond = target.dt.microsecond