Skip to content

Commit f3d4520

Browse files
Update blocks.py
1 parent 85f67b6 commit f3d4520

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/core/internals/blocks.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,9 +1522,8 @@ def round(self, decimals: int) -> Self:
15221522
Caller is responsible for validating this
15231523
"""
15241524
if not self.is_numeric or self.is_bool:
1525-
return self.copy(deep=False)
1526-
1527-
values = self.values.round(decimals) # type: ignore[union-attr]
1525+
return self.copy(deep=False)
1526+
values = self.values.round(decimals)
15281527

15291528
refs = None
15301529
if values is self.values:

0 commit comments

Comments
 (0)