Skip to content

Commit

Permalink
FEAT-#2663: Formatting and type hints
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Petersohn <devin.petersohn@gmail.com>
  • Loading branch information
devin-petersohn committed Jan 31, 2021
1 parent 2a5c708 commit 8acb30f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modin/engines/base/frame/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def mask(
row_numeric_idx=new_row_order, col_numeric_idx=new_col_order
)

def from_labels(self):
def from_labels(self) -> "BasePandasFrame":
"""Convert the row labels to a column of data, inserted at the first position.
Returns
Expand Down Expand Up @@ -583,7 +583,9 @@ def from_labels_executor(df, **kwargs):
[0],
keep_remaining=True,
)
new_column_widths = [len(self.index.names) + self._column_widths[0]] + self._column_widths[1:]
new_column_widths = [
len(self.index.names) + self._column_widths[0]
] + self._column_widths[1:]
result = self.__constructor__(
new_parts,
new_row_labels,
Expand Down

0 comments on commit 8acb30f

Please sign in to comment.