MCPcopy Create free account
hub / github.com/dask/dask / create_scalar_collection

Function create_scalar_collection

dask/array/_array_expr/_backends.py:117–128  ·  view source on GitHub ↗
(expr)

Source from the content-addressed store, hash-verified

115
116
117def create_scalar_collection(expr):
118 from dask.array._array_expr._expr import ArrayExpr
119
120 if isinstance(expr, ArrayExpr):
121 # This mirrors the legacy implementation in dask.array
122 from dask.array._array_expr._collection import Array
123
124 return Array(expr)
125
126 from dask.dataframe.dask_expr._collection import Scalar
127
128 return Scalar(expr)

Callers

nothing calls this directly

Calls 2

ArrayClass · 0.90
ScalarClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…