From bb3bbe5abe0a52eff01b2bd341cacea914328d20 Mon Sep 17 00:00:00 2001 From: Anatoly Myachev Date: Fri, 3 Nov 2023 22:08:27 +0100 Subject: [PATCH] FIX-#0000: don't use 'set_index_name(None)' Signed-off-by: Anatoly Myachev --- modin/pandas/groupby.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modin/pandas/groupby.py b/modin/pandas/groupby.py index fb496cd979c..dceb865c488 100644 --- a/modin/pandas/groupby.py +++ b/modin/pandas/groupby.py @@ -1034,8 +1034,6 @@ def rank( ), numeric_only=False, ) - # pandas does not name the index on rank - result._query_compiler.set_index_name(None) return result @property @@ -1712,7 +1710,8 @@ def _check_index_name(self, result): """ if self._by is not None: # pandas does not name the index for this case - result._query_compiler.set_index_name(None) + # result._query_compiler.set_index_name(None) + pass return result def _default_to_pandas(self, f, *args, **kwargs):