Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More strict type for matrix multiplication #115

Closed
nagrael2 opened this issue Nov 3, 2021 · 1 comment
Closed

More strict type for matrix multiplication #115

nagrael2 opened this issue Nov 3, 2021 · 1 comment
Assignees

Comments

@nagrael2
Copy link

nagrael2 commented Nov 3, 2021

When using in DataFrame dot or @ pandas will return Series only when other is Series.
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.dot.html

Same can be told about Series. Result of Series @ Series is Scalar, Series @ DataFrame is Series, Series @ array is array.
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.dot.html

Reflected operands should also be included.

@joannasendorek
Copy link
Collaborator

Hi @nagrael2,
Thanks for reporting the issue. You can see PR with the fix: #132

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants