File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -9456,6 +9456,10 @@ def first(self, offset) -> Self:
9456
9456
"""
9457
9457
Select initial periods of time series data based on a date offset.
9458
9458
9459
+ .. deprecated:: 2.1
9460
+ :meth:`.first` is deprecated and will be removed in a future version.
9461
+ Please create a mask and filter using `.loc` instead.
9462
+
9459
9463
For a DataFrame with a sorted DatetimeIndex, this function can
9460
9464
select the first few rows based on a date offset.
9461
9465
@@ -9535,6 +9539,10 @@ def last(self, offset) -> Self:
9535
9539
"""
9536
9540
Select final periods of time series data based on a date offset.
9537
9541
9542
+ .. deprecated:: 2.1
9543
+ :meth:`.last` is deprecated and will be removed in a future version.
9544
+ Please create a mask and filter using `.loc` instead.
9545
+
9538
9546
For a DataFrame with a sorted DatetimeIndex, this function
9539
9547
selects the last few rows based on a date offset.
9540
9548
You can’t perform that action at this time.
0 commit comments