MCPcopy
hub / github.com/pydata/xarray / _new

Method _new

xarray/namedarray/core.py:274–279  ·  view source on GitHub ↗
(
        self,
        dims: _DimsLike | Default = ...,
        data: duckarray[_ShapeType, _DType] = ...,
        attrs: _AttrsLike | Default = ...,
    )

Source from the content-addressed store, hash-verified

272
273 @overload
274 def _new(
275 self,
276 dims: _DimsLike | Default = ...,
277 data: duckarray[_ShapeType, _DType] = ...,
278 attrs: _AttrsLike | Default = ...,
279 ) -> NamedArray[_ShapeType, _DType]: ...
280
281 @overload
282 def _new(

Callers 13

_replaceMethod · 0.95
imagMethod · 0.95
realMethod · 0.95
_nonzeroMethod · 0.95
_as_sparseMethod · 0.95
_to_denseMethod · 0.95
broadcast_toMethod · 0.95
test_new_namedarrayMethod · 0.95
astypeFunction · 0.45
imagFunction · 0.45
realFunction · 0.45
expand_dimsFunction · 0.45

Calls 1

_newFunction · 0.85

Tested by 1

test_new_namedarrayMethod · 0.76