Skip to content

Pass dropna and observed in agg#6992

Merged
jsignell merged 4 commits intodask:masterfrom
jsignell:dropna-agg
Jan 6, 2021
Merged

Pass dropna and observed in agg#6992
jsignell merged 4 commits intodask:masterfrom
jsignell:dropna-agg

Conversation

@jsignell
Copy link
Copy Markdown
Member

@jsignell jsignell commented Dec 18, 2020

@derived_from(pd.Series)
def groupby(self, by=None, **kwargs):
def groupby(
self, by=None, group_keys=True, sort=None, observed=None, dropna=None, **kwargs
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This make the kwargs show up as supported in the docstrings

@jsignell
Copy link
Copy Markdown
Member Author

I think I need to set a min pandas version for this feature or for the test at least.

@jsignell
Copy link
Copy Markdown
Member Author

@dask/maintenance I think this is ready to go in.

@martindurant
Copy link
Copy Markdown
Member

Also test observed= arg?

@jsignell jsignell merged commit 3e1d237 into dask:master Jan 6, 2021
abduhbm pushed a commit to abduhbm/dask that referenced this pull request Jan 19, 2021
* Pass dropna and observed in agg

* Add test for the issue

* Raise error if pandas is less than 1.1.0

* Add observed test and fix xfailed test
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.

dask groupby could support dropna argument

2 participants