Skip to content

Commit 86d4590

Browse files
committed
DEPR warning in io/data.py w.r.t. order->sort_values
1 parent 3782949 commit 86d4590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/data.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ def _validate_expiry(self, expiry):
10241024
if expiry in expiry_dates:
10251025
return expiry
10261026
else:
1027-
index = DatetimeIndex(expiry_dates).order()
1027+
index = DatetimeIndex(expiry_dates).sort_values()
10281028
return index[index.date >= expiry][0].date()
10291029

10301030
def get_forward_data(self, months, call=True, put=False, near=False,

0 commit comments

Comments
 (0)