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

Method __array__

dask/dataframe/dask_expr/_collection.py:4888–4891  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4886 return new_collection(expr.ScalarToSeries(self, index=index))
4887
4888 def __array__(self):
4889 # array interface is required to support pandas instance + Scalar
4890 # Otherwise, above op results in pd.Series of Scalar (object dtype)
4891 return np.asarray(self.compute())
4892
4893 @functools.cached_property
4894 def dtype(self):

Callers

nothing calls this directly

Calls 1

computeMethod · 0.45

Tested by

no test coverage detected