Skip to content

BUG: set_levels set illegal levels. #14290

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

Closed

Conversation

bkandel
Copy link
Contributor

@bkandel bkandel commented Sep 23, 2016

  • closes #xxxx
  • tests added / passed
  • passes git diff upstream/master | flake8 --diff
  • whatsnew entry

MultiIndex.set_levels, when passed in illegal level values, raises an error.
When inplace=True, though, the illegal level values are still accepted. This
commit fixes that behavior by checking that the proposed level values are legal
before setting them.

Duplicate of #14236, which kept failing the build with Qt errors. This is a retry with a fresh Travis build. Assuming it passes, I'll close #14236 in favor of this PR.

`MultiIndex.set_levels`, when passed in illegal level values, raises an error.
When `inplace=True`, though, the illegal level values are still accepted. This
commit fixes that behavior by checking that the proposed level values are legal
before setting them.

added tests and docs.

lint

added tests.

force build

force build

force build

force build for osx
@bkandel bkandel closed this Sep 23, 2016
@bkandel bkandel deleted the fix_label_integrity_reload branch September 23, 2016 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant