Skip to content

Commit 8a1a3f1

Browse files
authored
DOC Added that DatetimeIndex needs to be ordered on first() (#52596)
DOC DatatimeIndex needs to be ordered on first()
1 parent 3eef165 commit 8a1a3f1

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
@@ -9020,7 +9020,7 @@ def first(self, offset) -> Self:
90209020
"""
90219021
Select initial periods of time series data based on a date offset.
90229022
9023-
When having a DataFrame with dates as index, this function can
9023+
For a DataFrame with a sorted DatetimeIndex, this function can
90249024
select the first few rows based on a date offset.
90259025
90269026
Parameters

0 commit comments

Comments
 (0)