We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e02ec8f commit f845215Copy full SHA for f845215
pandas/core/groupby/groupby.py
@@ -378,32 +378,22 @@ def __unicode__(self):
378
# TODO: Better unicode/repr for GroupBy object
379
return object.__repr__(self)
380
381
- def _assure_grouper(self):
382
- """
383
- We create the grouper on instantiation sub-classes may have a
384
- different policy.
385
386
- pass
387
-
388
@property
389
def groups(self):
390
"""
391
Dict {group name -> group labels}.
392
393
- self._assure_grouper()
394
return self.grouper.groups
395
396
397
def ngroups(self):
398
399
return self.grouper.ngroups
400
401
402
def indices(self):
403
404
Dict {group name -> group indices}.
405
406
407
return self.grouper.indices
408
409
def _get_indices(self, names):
0 commit comments