Skip to content

Commit

Permalink
PERF-modin-project#7299: Use 'lazy_metadata_decorator' instead of 'sy…
Browse files Browse the repository at this point in the history
…nchronize_labels' for 'combine' function

Signed-off-by: Anatoly Myachev <anatoly.myachev@intel.com>
  • Loading branch information
anmyachev committed Jun 4, 2024
1 parent b860281 commit de09db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modin/core/dataframe/pandas/dataframe/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -2882,6 +2882,7 @@ def explode(self, axis: Union[int, Axis], func: Callable) -> PandasDataframe:
pandas_backend=self._pandas_backend,
)

@lazy_metadata_decorator(apply_axis="both")
def combine(self) -> PandasDataframe:
"""
Create a single partition PandasDataframe from the partitions of the current dataframe.
Expand Down Expand Up @@ -2909,7 +2910,6 @@ def combine(self) -> PandasDataframe:
dtypes=self.copy_dtypes_cache(),
pandas_backend=self._pandas_backend,
)
result.synchronize_labels()
return result

@lazy_metadata_decorator(apply_axis="both")
Expand Down

0 comments on commit de09db2

Please sign in to comment.