Identify cases where Series operation should dispatch to ExtensionArray method. Parameters ---------- left : np.ndarray or ExtensionArray right : object Returns ------- bool
(left: ArrayLike, right: Any)
| 16 | |
| 17 | |
| 18 | def should_extension_dispatch(left: ArrayLike, right: Any) -> bool: |
| 19 | """ |
| 20 | Identify cases where Series operation should dispatch to ExtensionArray method. |
| 21 | |
| 22 | Parameters |
| 23 | ---------- |
| 24 | left : np.ndarray or ExtensionArray |
| 25 | right : object |
| 26 | |
| 27 | Returns |
| 28 | ------- |
| 29 | bool |
| 30 | """ |
| 31 | return isinstance(left, ABCExtensionArray) or isinstance(right, ABCExtensionArray) |
no outgoing calls
no test coverage detected