Pandas Dataframe.dot() Method Implementations
We can also use Pandas Dataframe for using the dot() method. The dot() method multiplies each value from one DataFrame with the values from another DataFrame, and adds them together.
Syntax:
Syntax: dataframe.dot(other)
Parameters:
- other: Other Dataframe to be used to calculate DOT product
Return of Dataframe.dot()
- If
other
is a Series: It returns a Series representing the dot product of the DataFrame and the Series. - If
other
is a DataFrame: It returns a Series representing the dot product of the DataFrame and each row of the other DataFrame. - If
other
is a NumPy array or array-like: It returns a Series representing the dot product between the DataFrame and each column of the NumPy array.
Contact Us