Skip to content
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 FutureWarnings in rolling unless necessary #6586

Merged
merged 5 commits into from
Oct 3, 2023

Conversation

anmyachev
Copy link
Collaborator

@anmyachev anmyachev commented Sep 18, 2023

What do these changes do?

@anmyachev anmyachev force-pushed the issue6585 branch 2 times, most recently from 90c3799 to e38e846 Compare September 26, 2023 16:41
Signed-off-by: Anatoly Myachev <[email protected]>
Signed-off-by: Anatoly Myachev <[email protected]>
Signed-off-by: Anatoly Myachev <[email protected]>
df.rolling(**rolling_kwargs).quantile(
quantile=quantile, interpolation=interpolation, **kwargs
Copy link
Collaborator Author

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]",
Copy link
Collaborator Author

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 = [
Copy link
Collaborator Author

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.

@anmyachev anmyachev marked this pull request as ready for review September 29, 2023 17:17
@anmyachev anmyachev requested a review from a team as a code owner September 29, 2023 17:17
pytest.mark.filterwarnings(
"ignore:Support for axis=1 in DataFrame.rolling is deprecated:FutureWarning"
),
# FIXME: these cases inconsistent between modin and pandas
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

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.

@dchigarev dchigarev merged commit 77b8d36 into modin-project:master Oct 3, 2023
37 checks passed
@anmyachev anmyachev deleted the issue6585 branch October 3, 2023 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants