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

BUG: filter (with dropna=False) when there are no groups fulfilling the condition #12776

Closed
wants to merge 1 commit into from

Conversation

jonaslb
Copy link
Contributor

@jonaslb jonaslb commented Apr 2, 2016

Implemented the fix for #12768 which was proposed in the bug report.

@jreback jreback added this to the 0.18.1 milestone Apr 2, 2016
def test_filter_out_all_groups_in_df_dropna_false(self):
# GH12768
df = pd.DataFrame({'a': [1,1,2], 'b': [1,2,0]})
res = df.groupby('a')
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add a test for dropna=True as well. lgtm otherwise. ping when green.

@jreback
Copy link
Contributor

jreback commented Apr 2, 2016

run: git diff master | flake8 --diff to see PEP issues

…illing req.

Closes #12768

Added test for bug #12768

Added whatsnew entry for fix for #12768

Added another test for the case where dropna=True

Added some spaces in my tests that I missed previously.. (passes flake8 now)
@jreback jreback closed this in 64977f1 Apr 3, 2016
@jreback
Copy link
Contributor

jreback commented Apr 3, 2016

thanks @jonaslb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: filter (with dropna=False) when there are no groups fulfilling the condition
2 participants