Pandas Series.dot()
The dot()
method is used to compute the dot product between DataFrames
or Series
.
Pandas Series.dot() is used to compute the dot product between DataFrames
or Series
. It works similarly to pd.mul() method, but instead of returning multiplied separate values, the dot product is returned (the sum of the multiplication of values at each index).
Syntax:
Syntax: Series.dot(other)
Parameters:
- other: Other Series to be used to calculate DOT product
Return of the Series.dot() function
The return of the dot function can be a scalar, series, or numpy.ndarray.
- The dot product of the Series and other if other is a Series.
- The Series of the dot product of Series and each rows of other if other is a DataFrame .
- A numpy.ndarray between the Series and each columns of the numpy array.
Contact Us