Skip to content

featurebyte.Target.dt.second

second: Target

Description

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

Returns

  • Target
    Target containing the second component values

Examples

Compute the second component of a timestamp column:

>>> target = catalog.get_target("target_latest_invoice_timestamp")
>>> target_timestamp_second = target.dt.second