MCPcopy
hub / github.com/dask/dask / dot

Method dot

dask/dataframe/dask_expr/_collection.py:2553–2563  ·  view source on GitHub ↗
(self, other, meta=no_default)

Source from the content-addressed store, hash-verified

2551
2552 @derived_from(pd.Series)
2553 def dot(self, other, meta=no_default):
2554 if not isinstance(other, FrameBase):
2555 raise TypeError("The second operand must be a dask dataframe")
2556
2557 if isinstance(other, DataFrame):
2558 s = self.map_partitions(M.dot, other, meta=meta)
2559 return s.groupby(by=s.index).apply(
2560 lambda x: x.sum(skipna=False), meta=s._meta_nonempty
2561 )
2562
2563 return self.map_partitions(_dot_series, other, meta=meta).sum(skipna=False)
2564
2565 @derived_from(pd.DataFrame)
2566 def pipe(self, func, *args, **kwargs):

Callers 4

_dot_seriesFunction · 0.45
test_dotFunction · 0.45
test_dotFunction · 0.45
test_dot_nanFunction · 0.45

Calls 4

map_partitionsMethod · 0.95
applyMethod · 0.45
groupbyMethod · 0.45
sumMethod · 0.45

Tested by 3

test_dotFunction · 0.36
test_dotFunction · 0.36
test_dot_nanFunction · 0.36