From 3f1badebfe4df0dd17435ac897333898572faa6b Mon Sep 17 00:00:00 2001 From: a-hirota Date: Wed, 20 Nov 2024 11:05:27 +0900 Subject: [PATCH] style: apply pre-commit fixes Ran pre-commit to address style issues as per review feedback. This ensures consistency with project coding standards. --- python/cudf/cudf/core/indexed_frame.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python/cudf/cudf/core/indexed_frame.py b/python/cudf/cudf/core/indexed_frame.py index 87c29ee6965..f31674f21a8 100644 --- a/python/cudf/cudf/core/indexed_frame.py +++ b/python/cudf/cudf/core/indexed_frame.py @@ -3969,7 +3969,13 @@ def round(self, decimals=0, how="half_even"): cols = ( col.round(decimals[name], how=how) - if name in decimals and (col.dtype.kind in "fiu" or isinstance(col.dtype, (cudf.Decimal32Dtype, cudf.Decimal64Dtype))) + if name in decimals + and ( + col.dtype.kind in "fiu" + or isinstance( + col.dtype, (cudf.Decimal32Dtype, cudf.Decimal64Dtype) + ) + ) else col.copy(deep=True) for name, col in self._column_labels_and_values )