-
Notifications
You must be signed in to change notification settings - Fork 655
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
FIX-#6585: avoid FutureWarning
s in rolling
unless necessary
#6586
Conversation
8e7af76
to
952f647
Compare
90c3799
to
e38e846
Compare
…cessary Signed-off-by: Anatoly Myachev <[email protected]>
Signed-off-by: Anatoly Myachev <[email protected]>
Signed-off-by: Anatoly Myachev <[email protected]>
Signed-off-by: Anatoly Myachev <[email protected]>
5f9837e
to
e051936
Compare
Signed-off-by: Anatoly Myachev <[email protected]>
df.rolling(**rolling_kwargs).quantile( | ||
quantile=quantile, interpolation=interpolation, **kwargs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deprecated kwarg name.
@@ -24,8 +24,8 @@ def pytest_collection_modifyitems(items): | |||
): | |||
for item in items: | |||
if item.name in ( | |||
"test_dataframe_dt_index[3s-both-DateCol-0]", | |||
"test_dataframe_dt_index[3s-right-DateCol-0]", | |||
"test_dataframe_dt_index[3s-both-DateCol-_NoDefault.no_default]", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be align with the new value of axis for test_dataframe_dt_index
test.
@@ -34,7 +35,19 @@ | |||
# have too many such instances. | |||
# TODO(https://github.com/modin-project/modin/issues/3655): catch all instances | |||
# of defaulting to pandas. | |||
pytestmark = pytest.mark.filterwarnings(default_to_pandas_ignore_string) | |||
pytestmark = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same way as it done for test_groupby.py
.
pytest.mark.filterwarnings( | ||
"ignore:Support for axis=1 in DataFrame.rolling is deprecated:FutureWarning" | ||
), | ||
# FIXME: these cases inconsistent between modin and pandas |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in which way they're inconsistent, do we have an issue for that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modin does not show this warning in cases where Pandas does. Not yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dchigarev let's merge, I will create issue later.
What do these changes do?
flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py
black --check modin/ asv_bench/benchmarks scripts/doc_checker.py
git commit -s
.rolling
func leads to gettingFutureWarning: The 'axis' keyword in DataFrame.rolling is deprecated and will be removed in a future version. Call the method without the axis keyword instead.
#6585docs/development/architecture.rst
is up-to-date