From e91687477f547859af2d6f52cd194191fe3e78fe Mon Sep 17 00:00:00 2001 From: Anatoly Myachev <45976948+anmyachev@users.noreply.github.com> Date: Thu, 12 Nov 2020 20:30:07 +0300 Subject: [PATCH] REFACTOR-#2397: remove redundant assigment (#2398) Signed-off-by: Anatoly Myachev --- modin/backends/base/query_compiler.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/modin/backends/base/query_compiler.py b/modin/backends/base/query_compiler.py index 980f7ac2467..06b74d43e3a 100644 --- a/modin/backends/base/query_compiler.py +++ b/modin/backends/base/query_compiler.py @@ -1412,8 +1412,6 @@ def groupby_agg( by = by.columns[0] if drop else by.to_pandas().squeeze() elif isinstance(by, type(self)): by = list(by.columns) - else: - by = by else: by = by.to_pandas().squeeze() if isinstance(by, type(self)) else by