Spec-Zone.ru › Polars

polars.Series.dot

Series.dot(
    other: Series | ArrayLike,
) → int | float | None

Вычисляет скалярное/внутреннее произведение двух объектов Series.

Параметры:
other

Series (или массив), с которым вычисляется скалярное произведение.

Примеры

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

© 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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API