A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pandas.pydata.org/pandas-docs/stable/reference/api/../api/pandas.Series.dt.isocalendar.html below:

pandas.Series.dt.isocalendar — pandas 2.3.1 documentation

pandas.Series.dt.isocalendar#
Series.dt.isocalendar()[source]#

Calculate year, week, and day according to the ISO 8601 standard.

Returns:
DataFrame

With columns year, week and day.

See also

Timestamp.isocalendar

Function return a 3-tuple containing ISO year, week number, and weekday for the given Timestamp object.

datetime.date.isocalendar

Return a named tuple object with three components: year, week and weekday.

Examples

>>> ser = pd.to_datetime(pd.Series(["2010-01-01", pd.NaT]))
>>> ser.dt.isocalendar()
   year  week  day
0  2009    53     5
1  <NA>  <NA>  <NA>
>>> ser.dt.isocalendar().week
0      53
1    <NA>
Name: week, dtype: UInt32

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4