diff --git a/pandas/core/generic.py b/pandas/core/generic.py index f9aa5ca9e8ea9..9b0c3caa0b407 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8439,8 +8439,8 @@ def last(self: FrameOrSeries, offset) -> FrameOrSeries: """ Select final periods of time series data based on a date offset. - When having a DataFrame with dates as index, this function can - select the last few rows based on a date offset. + For a DataFrame with a sorted DatetimeIndex, this function + selects the last few rows based on a date offset. Parameters ----------