MCPcopy
hub / github.com/pandas-dev/pandas / should_extension_dispatch

Function should_extension_dispatch

pandas/core/ops/dispatch.py:18–31  ·  view source on GitHub ↗

Identify cases where Series operation should dispatch to ExtensionArray method. Parameters ---------- left : np.ndarray or ExtensionArray right : object Returns ------- bool

(left: ArrayLike, right: Any)

Source from the content-addressed store, hash-verified

16
17
18def 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)

Callers 3

arithmetic_opFunction · 0.90
comparison_opFunction · 0.90
logical_opFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected