Skip to content

Commit

Permalink
Name change
Browse files Browse the repository at this point in the history
  • Loading branch information
adneu committed Jul 5, 2016
1 parent ac1851a commit 16f5cd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pandas/core/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def _selected_obj(self):
else:
return self.obj[self._selection]

def _clear_group_selection(self):
def _reset_group_selection(self):
"""
Clear group based selection. Used for methods needing to return info on
each group regardless of whether a group selection was previously set.
Expand Down Expand Up @@ -1417,7 +1417,7 @@ def head(self, n=5):
0 1 2
2 5 6
"""
self._clear_group_selection()
self._reset_group_selection()
mask = self._cumcount_array() < n
return self._selected_obj[mask]

Expand All @@ -1444,7 +1444,7 @@ def tail(self, n=5):
0 a 1
2 b 1
"""
self._clear_group_selection()
self._reset_group_selection()
mask = self._cumcount_array(ascending=False) < n
return self._selected_obj[mask]

Expand Down

0 comments on commit 16f5cd3

Please sign in to comment.