Skip to content

Commit 7765570

Browse files
DeaMariaLeonmeeseeksmachine
authored andcommitted
Backport PR pandas-dev#52596: DOC Added that DatetimeIndex needs to be ordered on first()
1 parent 33dfa6c commit 7765570

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

Lines changed: 1 addition & 1 deletion
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)