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

DEPR: pd.value_counts #53493

Merged
merged 15 commits into from
Jun 12, 2023
Merged

Conversation

jbrockmendel
Copy link
Member

@mroeschke mroeschke added the Deprecate Functionality to remove in pandas label Jun 1, 2023
@mroeschke mroeschke added this to the 2.1 milestone Jun 6, 2023
@@ -7,6 +7,7 @@ Version 0.19.2 (December 24, 2016)

.. ipython:: python
:suppress:
:okwarning:
Copy link
Member

Choose a reason for hiding this comment

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

So a star import will raise the FutureWarning from pd.value_counts? That's kinda unfortunate as it seems noisy

Copy link
Member Author

Choose a reason for hiding this comment

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

i dont see an alternative that isnt behavior-changing

Copy link
Member Author

Choose a reason for hiding this comment

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

i guess could warn inside value_counts if it is called

Copy link
Member

Choose a reason for hiding this comment

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

Yeah I think it's more directly useful to warn users who are using pd.value_counts directly`

Copy link
Member Author

Choose a reason for hiding this comment

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

updated + greenish

@mroeschke mroeschke merged commit 8b6a244 into pandas-dev:main Jun 12, 2023
@mroeschke
Copy link
Member

Thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the depr-value_counts-47862 branch June 12, 2023 18:26
canthonyscott pushed a commit to canthonyscott/pandas-anthony that referenced this pull request Jun 23, 2023
* DEPR: pd.value_counts

* update docs

* suppress warning

* suppress warning

* suppress warning

* suppress warning

* pyright ignore

* pylint ignore

* warn inside value_counts
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
* DEPR: pd.value_counts

* update docs

* suppress warning

* suppress warning

* suppress warning

* suppress warning

* pyright ignore

* pylint ignore

* warn inside value_counts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DEPR or DOCS: pd.value_counts() is public, but not documented. Deprecate or document?
2 participants