Skip to main content
`Ctrl`+`K`

# pandas.Timestamp.weekofyear

Timestamp.weekofyear

  Return the week number of the year.

  Weeks are numbered according to the ISO 8601 standard, where weeks start on Monday and the first week of the year contains the year’s first Thursday.

  Returns:
    int

  See also

  `Timestamp.weekday`

    Return the day of the week.

  `Timestamp.quarter`

    Return the quarter of the year.

  Examples

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