-
Notifications
You must be signed in to change notification settings - Fork 52
feat: support Series.dot
on a DataFrame input
#230
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
base: main
Are you sure you want to change the base?
Conversation
bigframes/series.py
Outdated
return Series( | ||
[ | ||
pandas.NA if other[col].isna().any() else (self * other[col]).sum() | ||
for col in other.columns | ||
], | ||
index=other.columns, | ||
name=self.name, | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will perform several queries, as each aggregate .any()
operation initiates a query. I think we can do this more efficiently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sent an optimization, PTAL. It doesn't apply to multi-index yet due to b/313747368, left a TODO.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes internal issue 312559139 🦕