From ad02646a374f17594e4a4103432263e27832eeae Mon Sep 17 00:00:00 2001 From: Jonathan Shi Date: Mon, 22 Jul 2024 13:00:02 -0700 Subject: [PATCH] fix reset_index --- modin/pandas/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modin/pandas/base.py b/modin/pandas/base.py index 9f9dc0ed433..51c9cd8156f 100644 --- a/modin/pandas/base.py +++ b/modin/pandas/base.py @@ -2659,7 +2659,10 @@ def reset_index( # exist. if ( not drop - and not self._query_compiler.lazy_column_labels + and not ( + self._query_compiler.lazy_column_labels + or self._query_compiler.lazy_row_labels + ) and not self._query_compiler.has_multiindex() and all(n in self.columns for n in ["level_0", "index"]) ):