Skip to content

Commit 092d5bf

Browse files
Backport PR #52596 on branch 2.0.x (DOC Added that DatetimeIndex needs to be ordered on first()) (#52600)
Backport PR #52596: DOC Added that DatetimeIndex needs to be ordered on first() Co-authored-by: Dea María Léon <[email protected]>
1 parent 2663213 commit 092d5bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8905,7 +8905,7 @@ def first(self: NDFrameT, offset) -> NDFrameT:
89058905
"""
89068906
Select initial periods of time series data based on a date offset.
89078907
8908-
When having a DataFrame with dates as index, this function can
8908+
For a DataFrame with a sorted DatetimeIndex, this function can
89098909
select the first few rows based on a date offset.
89108910
89118911
Parameters

0 commit comments

Comments
 (0)