polars.Series.dot

Series.dot(other: polars.internals.series.Series) Optional[float]

Compute the dot/inner product between two Series

Parameters
other

Series to compute dot product with

Examples

>>> s = pl.Series("a", [1, 2, 3])
>>> s2 = pl.Series("b", [4.0, 5.0, 6.0])
>>> s.dot(s2)
32.0