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

Method dot

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

Source from the content-addressed store, hash-verified

2585
2586 @derived_from(pd.Series)
2587 def dot(self, other, meta=no_default):
2588 if not isinstance(other, FrameBase):
2589 raise TypeError("The second operand must be a dask dataframe")
2590
2591 if isinstance(other, DataFrame):
2592 s = self.map_partitions(M.dot, other, meta=meta)
2593 return s.groupby(by=s.index).apply(
2594 lambda x: x.sum(skipna=False), meta=s._meta_nonempty
2595 )
2596
2597 return self.map_partitions(_dot_series, other, meta=meta).sum(skipna=False)
2598
2599 @derived_from(pd.DataFrame)
2600 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