bigframes.pandas.api.typing.DatetimeMethods.isocalendar#
- DatetimeMethods.isocalendar() DataFrame[source]#
Calculate year, week, and day according to the ISO 8601 standard.
Examples:
>>> s = bpd.Series( ... pd.date_range('2009-12-27', '2010-01-04', freq='d').to_series() ... ) >>> s.dt.isocalendar() year week day 2009-12-27 00:00:00 2009 52 7 2009-12-28 00:00:00 2009 53 1 2009-12-29 00:00:00 2009 53 2 2009-12-30 00:00:00 2009 53 3 2009-12-31 00:00:00 2009 53 4 2010-01-01 00:00:00 2009 53 5 2010-01-02 00:00:00 2009 53 6 2010-01-03 00:00:00 2009 53 7 2010-01-04 00:00:00 2010 1 1 [9 rows x 3 columns]
- Returns: DataFrame
With columns year, week and day.