Skip to content

Commit 4f20ca2

Browse files
committed
comment
1 parent de90d79 commit 4f20ca2

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

pandas/core/groupby.py

+8-9
Original file line numberDiff line numberDiff line change
@@ -1733,9 +1733,11 @@ class BaseGrouper(object):
17331733
axis : the axis to group
17341734
groupings : all the grouping instances to handle in this grouper
17351735
for example for grouper list to groupby, need to pass the list
1736-
sort : True/False
1736+
sort : boolean, default True
17371737
whether this grouper will give sorted result or not
1738-
indexer: the indexer created by Grouper
1738+
group_keys : boolean, default True
1739+
mutated : boolean, default False
1740+
indexer : the indexer created by Grouper
17391741
some grouper (TimeGrouper eg) will sort its axis and its
17401742
group_info is also sorted, so need the indexer to reorder
17411743
@@ -2296,18 +2298,15 @@ def generate_bins_generic(values, binner, closed):
22962298
class BinGrouper(BaseGrouper):
22972299

22982300
"""
2299-
This is an internal Grouper class, which actually holds
2300-
the generated groups. In contrast with BaseGrouper,
2301-
BinGrouper get the sorted bins and binlabels to compute group_info
2301+
This is an internal Grouper class
23022302
23032303
Parameters
23042304
----------
23052305
bins : the split index of binlabels to group the item of axis
23062306
binlabels : the label list
2307-
indexer: the indexer created by Grouper
2308-
some grouper (TimeGrouper eg) will sort its axis and the
2309-
group_info of BinGrouper is also sorted
2310-
can use the indexer to reorder as the unsorted axis
2307+
filter_empty : boolean, default False
2308+
mutated : boolean, default False
2309+
indexer : a intp array
23112310
23122311
Examples
23132312
--------

0 commit comments

Comments
 (0)