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

Function ones_like

xarray/core/common.py:1924–1931  ·  view source on GitHub ↗
(
    other: DataArray,
    dtype: DTypeLikeSave | None = None,
    *,
    chunks: T_Chunks = None,
    chunked_array_type: str | None = None,
    from_array_kwargs: dict[str, Any] | None = None,
)

Source from the content-addressed store, hash-verified

1922
1923@overload
1924def ones_like(
1925 other: DataArray,
1926 dtype: DTypeLikeSave | None = None,
1927 *,
1928 chunks: T_Chunks = None,
1929 chunked_array_type: str | None = None,
1930 from_array_kwargs: dict[str, Any] | None = None,
1931) -> DataArray: ...
1932
1933
1934@overload

Callers 2

_get_nan_block_lengthsFunction · 0.90
test_ones_likeMethod · 0.90

Calls 1

full_likeFunction · 0.70

Tested by 1

test_ones_likeMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…