We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cd6b76 commit e0e0131Copy full SHA for e0e0131
pandas/core/arrays/interval.py
@@ -11,6 +11,7 @@
11
Sequence,
12
Type,
13
TypeVar,
14
+ Union,
15
cast,
16
)
17
@@ -1493,7 +1494,9 @@ def delete(self: IntervalArrayT, loc) -> IntervalArrayT:
1493
1494
return self._shallow_copy(left=new_left, right=new_right)
1495
1496
@Appender(_extension_array_shared_docs["repeat"] % _shared_docs_kwargs)
- def repeat(self: IntervalArrayT, repeats: int, axis=None) -> IntervalArrayT:
1497
+ def repeat(
1498
+ self: IntervalArrayT, repeats: Union[int, Sequence[int]], axis=None
1499
+ ) -> IntervalArrayT:
1500
nv.validate_repeat((), {"axis": axis})
1501
left_repeat = self.left.repeat(repeats)
1502
right_repeat = self.right.repeat(repeats)
0 commit comments