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

Fix the input check in Series. #1814

Merged
merged 5 commits into from Oct 5, 2020

Conversation

ueshin
Copy link
Collaborator

@ueshin ueshin commented Oct 2, 2020

Fixes the input check in Series.

msg = r"'Key length \(2\) exceeds index depth \(3\)'"
with self.assertRaisesRegex(KeyError, msg):
kser.drop(("lama", "speed", "x"))
self.assert_eq(kser.drop(("lama", "speed", "x"), level=1), kser)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@itholic Do you remember the reason of this behavior?

Copy link
Contributor

@itholic itholic Oct 5, 2020

Choose a reason for hiding this comment

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

Hmm... I don't remember clearly but I'd say maybe It seems that there's no special reason for it - I think I just had not enough understood at the time of working on this.😅 -
Anyway, it seems that this case should be fixed to raise an error.

@ueshin
Copy link
Collaborator Author

ueshin commented Oct 5, 2020

Thanks! merging.

@ueshin ueshin merged commit 3e8caf1 into databricks:master Oct 5, 2020
@ueshin ueshin deleted the check_non-string_names/series branch October 5, 2020 20:57
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.

None yet

3 participants