Skip to content

ENH:Return new Series when missing data in group keys is #27945

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
wants to merge 1 commit into from

Conversation

proost
Copy link
Contributor

@proost proost commented Aug 16, 2019

ENH: missing data in index would not raise exception

ENH: missing data in index would not raise exception
taken = values.take(indices)
except IndexError:
if not values.tolist():
return []

Choose a reason for hiding this comment

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

What about the empty series for this.

@proost proost closed this Aug 22, 2019
@proost proost deleted the new-feature-groupby branch August 22, 2019 14:19
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.

Groupby on multiindex with missing data in group keys raises IndexError
2 participants