Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Chigarev <[email protected]>
  • Loading branch information
dchigarev committed Dec 13, 2023
1 parent d6da4b2 commit 6f2f115
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modin/core/dataframe/pandas/dataframe/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,8 @@ def _set_columns(self, new_columns):
new_dtypes = None
elif isinstance(self._dtypes, pandas.Series):
new_dtypes = self.dtypes.set_axis(new_columns)
else:
new_dtypes = None
self.set_columns_cache(new_columns)
# we have to set new dtypes cache after columns,
# so the 'self.columns' and 'new_dtypes.index' indices would match
Expand Down

0 comments on commit 6f2f115

Please sign in to comment.