bigframes.pandas.api.typing.DatetimeMethods.quarter#

property DatetimeMethods.quarter: Series#

The quarter of the date.

Examples:

>>> import bigframes.pandas as bpd
>>> s = bpd.Series(["1/1/2020 10:00:00+00:00", "4/1/2020 11:00:00+00:00"])
>>> s = bpd.to_datetime(s, utc=True, format="%m/%d/%Y %H:%M:%S%Ez")
>>> s
0    2020-01-01 10:00:00+00:00
1    2020-04-01 11:00:00+00:00
dtype: timestamp[us, tz=UTC][pyarrow]
>>> s.dt.quarter
0    1
1    2
dtype: Int64