From d3c5fe1529bb4050b9778376ebd2dc3e5ca2ad70 Mon Sep 17 00:00:00 2001 From: Marco Edward Gorelli Date: Fri, 8 Apr 2022 08:52:25 +0100 Subject: [PATCH] Backport PR #46690: CI fix-ci-isocalendar --- pandas/core/arrays/datetimes.py | 5 ++--- pandas/core/indexes/accessors.py | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 9d07a5862f11f..2c296ae1d1b0c 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -1342,15 +1342,14 @@ def date(self) -> npt.NDArray[np.object_]: def isocalendar(self) -> DataFrame: """ - Returns a DataFrame with the year, week, and day calculated according to - the ISO 8601 standard. + Calculate year, week, and day according to the ISO 8601 standard. .. versionadded:: 1.1.0 Returns ------- DataFrame - with columns year, week and day + With columns year, week and day. See Also -------- diff --git a/pandas/core/indexes/accessors.py b/pandas/core/indexes/accessors.py index 78beda95d4658..ed41fd15177ba 100644 --- a/pandas/core/indexes/accessors.py +++ b/pandas/core/indexes/accessors.py @@ -243,15 +243,14 @@ def freq(self): def isocalendar(self): """ - Returns a DataFrame with the year, week, and day calculated according to - the ISO 8601 standard. + Calculate year, week, and day according to the ISO 8601 standard. .. versionadded:: 1.1.0 Returns ------- DataFrame - with columns year, week and day + With columns year, week and day. See Also --------