Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
Signed-off-by: Rehan Durrani <[email protected]>
  • Loading branch information
RehanSD committed Jun 8, 2022
1 parent d2c7295 commit 55ec3a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modin/pandas/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,8 @@ def groupby(
# We don't need to check if `by` is a Series or Index, since those
# won't be referencing labels
if not isinstance(by, (pandas.Series, Series, pandas.Index)):
_by_check = by if is_list_like(by) else [by]
for k in _by_check:
_by_list = by if is_list_like(by) else [by]
for k in _by_list:
if not isinstance(k, (Series, pandas.Series, pandas.Index)):
if k in self.index.names and k in self.axes[axis ^ 1]:
level_name, index_name = "an index", "a column"
Expand Down

0 comments on commit 55ec3a1

Please sign in to comment.