Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Yaroslav Igoshev <[email protected]>
  • Loading branch information
vnlitvinov and YarShev authored Jul 29, 2022
1 parent fda1cdf commit e09525c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modin/core/dataframe/pandas/dataframe/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@ def _get_index(self):
An index object containing the row labels.
"""
if self._index_cache is None:
self._index_cache, internal_sizes = self._compute_axis_labels(0)
self._index_cache, row_lengths = self._compute_axis_labels(0)
if self._row_lengths_cache is None:
self._row_lengths_cache = internal_sizes
self._row_lengths_cache = row_lengths
return self._index_cache

def _get_columns(self):
Expand All @@ -366,9 +366,9 @@ def _get_columns(self):
An index object containing the column labels.
"""
if self._columns_cache is None:
self._columns_cache, internal_sizes = self._compute_axis_labels(1)
self._columns_cache, column_widths = self._compute_axis_labels(1)
if self._column_widths_cache is None:
self._column_widths_cache = internal_sizes
self._column_widths_cache = column_widths
return self._columns_cache

def _set_index(self, new_index):
Expand Down

0 comments on commit e09525c

Please sign in to comment.