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

Function stack

xarray/core/duck_array_ops.py:456–459  ·  view source on GitHub ↗

stack() with better dtype promotion rules.

(arrays, axis=0)

Source from the content-addressed store, hash-verified

454
455
456def stack(arrays, axis=0):
457 """stack() with better dtype promotion rules."""
458 xp = get_array_namespace(arrays[0])
459 return xp.stack(as_shared_dtype(arrays, xp=xp), axis=axis)
460
461
462def reshape(array, shape):

Callers 2

_interpndFunction · 0.90

Calls 3

get_array_namespaceFunction · 0.90
as_shared_dtypeFunction · 0.85
stackMethod · 0.45

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…