MCPcopy Index your code
hub / github.com/pydata/xarray / stack

Function stack

xarray/tests/arrays.py:105–112  ·  view source on GitHub ↗
(
    arrays: Iterable["ConcatenatableArray"], /, *, axis=0
)

Source from the content-addressed store, hash-verified

103
104@implements(np.stack)
105def stack(
106 arrays: Iterable["ConcatenatableArray"], /, *, axis=0
107) -> "ConcatenatableArray":
108 if any(not isinstance(arr, ConcatenatableArray) for arr in arrays):
109 raise TypeError
110
111 result = np.stack([arr._array for arr in arrays], axis=axis)
112 return ConcatenatableArray(result)
113
114
115@implements(np.result_type)

Callers

nothing calls this directly

Calls 2

ConcatenatableArrayClass · 0.85
stackMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…