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

Method dot

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

Source from the content-addressed store, hash-verified

2545
2546 @derived_from(pd.Series)
2547 def dot(self, other, meta=no_default):
2548 if not isinstance(other, FrameBase):
2549 raise TypeError("The second operand must be a dask dataframe")
2550
2551 if isinstance(other, DataFrame):
2552 s = self.map_partitions(M.dot, other, meta=meta)
2553 return s.groupby(by=s.index).apply(
2554 lambda x: x.sum(skipna=False), meta=s._meta_nonempty
2555 )
2556
2557 return self.map_partitions(_dot_series, other, meta=meta).sum(skipna=False)
2558
2559 @derived_from(pd.DataFrame)
2560 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