From 437859be43d0e34c33cba16f6d833ce5d44528ce Mon Sep 17 00:00:00 2001 From: Dea Leon Date: Tue, 11 Apr 2023 16:43:15 +0200 Subject: [PATCH] DOC DatatimeIndex needs to be ordered on first() --- pandas/core/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index e16ef3580d96f..3da4f96444215 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9020,7 +9020,7 @@ def first(self, offset) -> Self: """ Select initial periods of time series data based on a date offset. - When having a DataFrame with dates as index, this function can + For a DataFrame with a sorted DatetimeIndex, this function can select the first few rows based on a date offset. Parameters