Skip to content

CLN: Remove 3rd party warning filters #50674

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 6 commits into from
Jan 13, 2023

Conversation

mroeschke
Copy link
Member

Checking if any of these are still needed and if so probably moving them to pyproject.toml

@mroeschke mroeschke added Testing pandas testing functions or related to the test suite Warnings Warnings that appear or should be added to pandas labels Jan 11, 2023
@mroeschke mroeschke changed the title CLN: Remove 3rd party warning filers CLN: Remove 3rd party warning filters Jan 11, 2023
),
pd.DataFrame({"a": np.array([-1, 2], dtype=object)}),
pd.DataFrame({"a": [Decimal("-1.0"), Decimal("2.0")]}),
],
)
def test_pos_object(self, df):
# GH#21380
# GH#21380F
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

F?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks changed

@@ -101,14 +101,16 @@ def test_pos_numeric(self, df):
# numpy changing behavior in the future
pytest.param(
pd.DataFrame({"a": ["a", "b"]}),
marks=[pytest.mark.filterwarnings("ignore")],
marks=[
pytest.mark.filterwarnings("ignore:Applying:DeprecationWarning")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment on where this comes from and maybe condition under which we can stop filtering? (im guessing numpy>x.y.z)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIUC I don't think there's necessarily a version timeline of when deprecation warnings are enforced (unless that's in scope of numpy 2.0?) cc @seberg

Copy link
Contributor

@seberg seberg Jan 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ummm, not sure I want to tie cleaning out all deprecations to NumPy 2.0, but I guess it is safe. If it helps, you can also put 1.25 and I will just do it, heh...

(We need to clean up expired deprecations a bit more systematically...)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay I'll just note that it will be changing in 1.25 so we can maybe be more proactive in changing this behavior

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just did it for 1.25/main, thanks.

@mroeschke mroeschke added this to the 2.0 milestone Jan 12, 2023
Copy link
Member

@jbrockmendel jbrockmendel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mroeschke mroeschke merged commit 829ae73 into pandas-dev:main Jan 13, 2023
@mroeschke mroeschke deleted the cln/old_warnings branch January 13, 2023 00:25
phofl pushed a commit to phofl/pandas that referenced this pull request Jan 13, 2023
* CLN: Remove 3rd party warning filers

* Move 3rd party warnings to pyproject.toml, some comments

* Move 3rd party warnings to pyproject.toml, some comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Testing pandas testing functions or related to the test suite Warnings Warnings that appear or should be added to pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants