-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
refactor(rust): Add DataFrame::new_with_broadcast and simplify column uniqueness checks #18285
Conversation
… uniqueness checks
3e9b98a
to
c402c20
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #18285 +/- ##
=======================================
Coverage 80.21% 80.21%
=======================================
Files 1501 1501
Lines 198911 198916 +5
Branches 2837 2837
=======================================
+ Hits 159557 159566 +9
+ Misses 38826 38822 -4
Partials 528 528 ☔ View full report in Codecov by Sentry. |
crates/polars-core/src/frame/mod.rs
Outdated
} | ||
// Converts a sequence of columns into a DataFrame, broadcasting length-1 | ||
// columns to match the other columns. | ||
pub fn new_with_broadcast(mut columns: Vec<Series>) -> PolarsResult<Self> { |
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.
Can we add a variant where we don't check for the unique names. In the IR we already have resolved this.
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.
Done.
No description provided.