Skip to content

Commit

Permalink
fix reset_index
Browse files Browse the repository at this point in the history
  • Loading branch information
noloerino committed Jul 22, 2024
1 parent da5be11 commit ad02646
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modin/pandas/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
):
Expand Down

0 comments on commit ad02646

Please sign in to comment.