Skip to content

Commit 2e9cddf

Browse files
committed
revert cast
1 parent 2e73b6a commit 2e9cddf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/arrays/arrow/array.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,8 +1094,7 @@ def round(self, decimals: int = 0, *args, **kwargs) -> Self:
10941094
DataFrame.round : Round values of a DataFrame.
10951095
Series.round : Round values of a Series.
10961096
"""
1097-
result = pc.round(self._pa_array, ndigits=decimals)
1098-
return type(self)(result.cast(self._pa_array.type))
1097+
return type(self)(pc.round(self._pa_array, ndigits=decimals))
10991098

11001099
@doc(ExtensionArray.searchsorted)
11011100
def searchsorted(

0 commit comments

Comments
 (0)