Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
galipremsagar committed Dec 14, 2024
1 parent e1ae9fa commit 1c914e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 1 addition & 3 deletions python/cudf/cudf/core/indexed_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -1108,9 +1108,7 @@ def dot(self, other, reflect=False):
elif isinstance(self, cudf.DataFrame) and isinstance(
other, (cudf.Series, cudf.DataFrame)
):
common = self._data.to_pandas_index.union(
other.index.to_pandas()
)
common = self._data.to_pandas_index.union(other.index.to_pandas())
if len(common) > self._num_columns or len(common) > len(
other.index
):
Expand Down
5 changes: 3 additions & 2 deletions python/cudf/cudf/core/reshape.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,9 @@ def concat(

result_columns = (
objs[0]
._data.to_pandas_index
.append([obj._data.to_pandas_index for obj in objs[1:]])
._data.to_pandas_index.append(
[obj._data.to_pandas_index for obj in objs[1:]]
)
.unique()
)

Expand Down

0 comments on commit 1c914e3

Please sign in to comment.