Skip to content

featurebyte.ViewColumn.dt.minute

minute: FrozenSeries

Description

Returns the minute 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

  • FrozenSeries
    Column or Feature containing the minute component values

Examples

Compute the minute component of a timestamp column:

>>> view = catalog.get_view("GROCERYINVOICE")
>>> view["TimestampMinute"] = view["Timestamp"].dt.minute
>>> view.preview(5).filter(regex="Timestamp")
            Timestamp  TimestampMinute
0 2022-01-03 12:28:58               28
1 2022-01-03 16:32:15               32
2 2022-01-07 16:20:04               20
3 2022-01-10 16:18:32               18
4 2022-01-12 17:36:23               36