import numpy as np
from dascore.utils.array_api import to_numpy
assert isinstance(to_numpy(np.array([1, 2])), np.ndarray)to_numpy
to_numpy(
array: Any ,
)-> ‘np.ndarray’
Convert an array from any backend to a numpy array.
Parameters
| Parameter | Description |
|---|---|
| array | Any array which implements the array API standard. |