-
Notifications
You must be signed in to change notification settings - Fork 358
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement DataFrame.dot supporting Series parameter (#1945)
Compute the matrix multiplication between the DataFrame and other **series only**. ``` >>> kdf = ks.DataFrame([[0, 1, -2, -1], [1, 1, 1, 1]]) >>> kser = ks.Series([1, 1, 2, 1]) >>> kdf.dot(kser) 0 -4 1 5 dtype: int64 Note how shuffling of the objects does not change the result. >>> kser2 = kser.reindex([1, 0, 2, 3]) >>> kdf.dot(kser2) 0 -4 1 5 dtype: int64 ```
- Loading branch information
1 parent
01ada38
commit 9e8d99b
Showing
4 changed files
with
141 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters