Skip to content

Commit f845215

Browse files
committed
Removed noop _assert_grouper
1 parent e02ec8f commit f845215

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pandas/core/groupby/groupby.py

-10
Original file line numberDiff line numberDiff line change
@@ -378,32 +378,22 @@ def __unicode__(self):
378378
# TODO: Better unicode/repr for GroupBy object
379379
return object.__repr__(self)
380380

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-
388381
@property
389382
def groups(self):
390383
"""
391384
Dict {group name -> group labels}.
392385
"""
393-
self._assure_grouper()
394386
return self.grouper.groups
395387

396388
@property
397389
def ngroups(self):
398-
self._assure_grouper()
399390
return self.grouper.ngroups
400391

401392
@property
402393
def indices(self):
403394
"""
404395
Dict {group name -> group indices}.
405396
"""
406-
self._assure_grouper()
407397
return self.grouper.indices
408398

409399
def _get_indices(self, names):

0 commit comments

Comments
 (0)