polars.Series.dot
-
Compute the dot/inner product between two Series.
- Parameters:
-
- other
-
Series (or array) 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
Series.dot(
other: Series | ArrayLike,
) → int | float | None
© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/series/api/polars.Series.dot.html