Skip to content

Commit 1125199

Browse files
committed
add round abc
1 parent fc30823 commit 1125199

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/core/arrays/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,6 +2340,11 @@ def _add_logical_ops(cls) -> None:
23402340
setattr(cls, "__ror__", cls._create_logical_method(roperator.ror_))
23412341
setattr(cls, "__xor__", cls._create_logical_method(operator.xor))
23422342
setattr(cls, "__rxor__", cls._create_logical_method(roperator.rxor))
2343+
2344+
def round(self, decimals: int = 0, *args, **kwargs) -> self:
2345+
raise AbstractMethodError(self)
2346+
2347+
23432348

23442349

23452350
class ExtensionScalarOpsMixin(ExtensionOpsMixin):

0 commit comments

Comments
 (0)