pandas.Timestamp.week#

Timestamp.week#

返回一年中的第几周。

示例

>>> ts = pd.Timestamp(2020, 3, 14)
>>> ts.week
11