polars.Expr.dot
-
Вычисляет скалярное произведение двух выражений.
- Параметры:
-
- other
-
Выражение, с которым вычисляется скалярное произведение.
Примеры
>>> df = pl.DataFrame({"a": [1, 3, 5], "b": [2, 4, 6]}) >>> df.select(pl.col("a").dot(pl.col("b"))) shape: (1, 1) ┌─────┐ │ a │ │ --- │ │ i64 │ ╞═════╡ │ 44 │ └─────┘
Expr.dot(
other: Expr | str_,
) → Expr
© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.dot.html