pandas.Timestamp.quarter#

Timestamp.quarter#

返回一年中的季度。

示例

>>> ts = pd.Timestamp(2020, 3, 14)
>>> ts.quarter
1