Skip to content

Commit 6db6c79

Browse files
committed
DEPR: True for dropna of SeriesGroupBy.nth (pandas-dev#11038)
1 parent fdbc6b8 commit 6db6c79

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pandas/core/groupby.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
compress_group_index, get_flattened_iterator,
5656
decons_obs_group_ids, get_indexer_dict)
5757
from pandas.util._decorators import (cache_readonly, Substitution,
58-
Appender, make_signature)
58+
Appender, make_signature, deprecate_kwarg)
5959
from pandas.io.formats.printing import pprint_thing
6060
from pandas.util._validators import validate_kwargs
6161

@@ -3329,6 +3329,11 @@ def _apply_to_column_groupbys(self, func):
33293329
""" return a pass thru """
33303330
return func(self)
33313331

3332+
@deprecate_kwarg(old_arg_name='dropna', new_arg_name='dropna',
3333+
mapping={True: None})
3334+
def groupby(self, by, **kwds):
3335+
return super(self, by)
3336+
33323337

33333338
class NDFrameGroupBy(GroupBy):
33343339

0 commit comments

Comments
 (0)