cudf.Series.dot#
- Series.dot(other, reflect=False)[source]#
Get dot product of frame and other, (binary operator dot).
Among flexible wrappers (add, sub, mul, div, mod, pow, dot) to arithmetic operators: +, -, *, /, //, %, **, @.
- Parameters:
- otherSequence, Series, or DataFrame
Any multiple element data structure, or list-like object.
- reflectbool, default False
If
True
, swap the order of the operands. See https://docs.python.org/3/reference/datamodel.html#object.__ror__ for more information on when this is necessary.
- Returns:
- scalar, Series, or DataFrame
The result of the operation.
Examples
>>> import cudf >>> df = cudf.DataFrame([[1, 2, 3, 4], ... [5, 6, 7, 8]]) >>> df @ df.T 0 1 0 30 70 1 70 174 >>> s = cudf.Series([1, 1, 1, 1]) >>> df @ s 0 10 1 26 dtype: int64 >>> [1, 2, 3, 4] @ s 10