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

Function ndim

xarray/core/duck_array_ops.py:806–809  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

804
805
806def ndim(array) -> int:
807 # Required part of the duck array and the array-api, but we fall back in case
808 # https://docs.xarray.dev/en/latest/internals/duck-arrays-integration.html#duck-array-requirements
809 return array.ndim if hasattr(array, "ndim") else np.ndim(array)
810
811
812def cumprod(array, axis=None, **kwargs):

Callers

nothing calls this directly

Calls 1

ndimMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…