Returns an array interface from the input.
(data: np.ndarray)
| 422 | |
| 423 | |
| 424 | def array_interface_dict(data: np.ndarray) -> ArrayInf: |
| 425 | """Returns an array interface from the input.""" |
| 426 | if array_hasobject(data): |
| 427 | raise ValueError("Input data contains `object` dtype. Expecting numeric data.") |
| 428 | ainf = data.__array_interface__ |
| 429 | if "mask" in ainf: |
| 430 | ainf["mask"] = ainf["mask"].__array_interface__ |
| 431 | return cast(ArrayInf, ainf) |
| 432 | |
| 433 | |
| 434 | def pd_cat_inf( # pylint: disable=too-many-locals |
no test coverage detected