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

Pandas compat: Filter sparse warnings #8621

Merged
merged 2 commits into from Jan 25, 2022

Conversation

jsignell
Copy link
Member

I think these warnings should not be cropping up from pandas, so this PR just filters them out.

Copy link
Member

@jrbourbeau jrbourbeau left a comment

Choose a reason for hiding this comment

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

Thanks @jsignell. This seems like a reasonable workaround -- let's continue to watch the upstream pandas issue. Also cc @jorisvandenbossche for visibility

dask/dataframe/tests/test_reshape.py Outdated Show resolved Hide resolved
dask/dataframe/tests/test_reshape.py Outdated Show resolved Hide resolved
Co-authored-by: James Bourbeau <jrbourbeau@users.noreply.github.com>
@jsignell jsignell merged commit 4015f7a into dask:main Jan 25, 2022
@jsignell jsignell deleted the pandas-compat-sparse branch January 25, 2022 19:40
@@ -86,6 +86,9 @@ def test_get_dummies_kwargs():
tm.assert_index_equal(res.columns, pd.Index([1, 2, 3, 5, np.nan]))


@pytest.mark.filterwarnings(
"ignore:In a future version, passing a SparseArray:FutureWarning"
) # https://github.com/pandas-dev/pandas/issues/45618
Copy link
Member

Choose a reason for hiding this comment

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

I find it a bit strange that this ignore is needed, as the example shouldn't be dealing with a sparse dtype in the index, only sparse columns.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, I see that's exactly why you opened the pandas issue :) pandas-dev/pandas#45618

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants