From 1c914e319981493f454f37cc8e3f4c9362b0bc1a Mon Sep 17 00:00:00 2001 From: galipremsagar Date: Fri, 13 Dec 2024 22:43:59 -0800 Subject: [PATCH] style --- python/cudf/cudf/core/indexed_frame.py | 4 +--- python/cudf/cudf/core/reshape.py | 5 +++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/python/cudf/cudf/core/indexed_frame.py b/python/cudf/cudf/core/indexed_frame.py index 18255baef88..e58a8bd179e 100644 --- a/python/cudf/cudf/core/indexed_frame.py +++ b/python/cudf/cudf/core/indexed_frame.py @@ -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 ): diff --git a/python/cudf/cudf/core/reshape.py b/python/cudf/cudf/core/reshape.py index ec0e83fa3d7..3c553598152 100644 --- a/python/cudf/cudf/core/reshape.py +++ b/python/cudf/cudf/core/reshape.py @@ -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() )