Skip to content

featurebyte.ViewColumn.dt.quarter

quarter: FrozenSeries

Description

Returns the quarter component of each element.

Returns

  • FrozenSeries
    Column or Feature containing the quarter component values

Examples

Compute the quarter component of a timestamp column:

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