Skip to content

DEPR: Index.is_mixed #33291

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 2 commits into from
Apr 5, 2020
Merged

Conversation

jbrockmendel
Copy link
Member

  • closes DEPR: Index.is_mixed #32922
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

"Index.is_mixed is deprecated and will be removed in a future version. "
"Check index.inferred_type directly instead.",
FutureWarning,
stacklevel=2,
Copy link
Member

Choose a reason for hiding this comment

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

Is the stack level required here? Wouldn’t it be thrown when calling directly without it?

Copy link
Member

Choose a reason for hiding this comment

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

A stacklevel is always required (and when the user would call it directly, it needs to be 2). The default in the stdlib is kind of useless

@WillAyd WillAyd added the Deprecate Functionality to remove in pandas label Apr 4, 2020
@jreback jreback added this to the 1.1 milestone Apr 5, 2020
@jreback jreback merged commit a9b051c into pandas-dev:master Apr 5, 2020
@jreback
Copy link
Contributor

jreback commented Apr 5, 2020

thanks, pls add to the deprecation issue tracker

@jbrockmendel jbrockmendel deleted the no-index-inferred branch April 5, 2020 19:54
jbrockmendel added a commit to jbrockmendel/pandas that referenced this pull request Apr 6, 2020
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: Index.is_mixed
4 participants