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 @@ -9661,6 +9661,10 @@ def first(self, offset) -> Self:
9661
9661
"""
9662
9662
Select initial periods of time series data based on a date offset.
9663
9663
9664
+ .. deprecated:: 2.1
9665
+ :meth:`.first` is deprecated and will be removed in a future version.
9666
+ Please create a mask and filter using `.loc` instead.
9667
+
9664
9668
For a DataFrame with a sorted DatetimeIndex, this function can
9665
9669
select the first few rows based on a date offset.
9666
9670
@@ -9740,6 +9744,10 @@ def last(self, offset) -> Self:
9740
9744
"""
9741
9745
Select final periods of time series data based on a date offset.
9742
9746
9747
+ .. deprecated:: 2.1
9748
+ :meth:`.last` is deprecated and will be removed in a future version.
9749
+ Please create a mask and filter using `.loc` instead.
9750
+
9743
9751
For a DataFrame with a sorted DatetimeIndex, this function
9744
9752
selects the last few rows based on a date offset.
9745
9753
You can’t perform that action at this time.
0 commit comments