Skip to content

DEPR: Enforce Rolling.validate/is_datetimelike/win_type deprecation #48838

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Oct 21, 2022
Prev Previous commit
Next Next commit
Remove another test
  • Loading branch information
mroeschke committed Sep 28, 2022
commit d3da59c00e0c064de64290a8448e3a331c4dbcdb
7 changes: 0 additions & 7 deletions pandas/tests/window/test_win_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
Series,
Timedelta,
concat,
date_range,
)
import pandas._testing as tm
from pandas.api.indexers import BaseIndexer
Expand Down Expand Up @@ -168,12 +167,6 @@ def test_consistent_win_type_freq(arg):
s.rolling(arg, win_type="freq")


def test_win_type_freq_return_deprecation():
freq_roll = Series(range(2), index=date_range("2020", periods=2)).rolling("2s")
with tm.assert_produces_warning(FutureWarning):
assert freq_roll.win_type == "freq"


@td.skip_if_no_scipy
def test_win_type_not_implemented():
class CustomIndexer(BaseIndexer):
Expand Down