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

refactor(rust): Add DataFrame::new_with_broadcast and simplify column uniqueness checks #18285

Merged
merged 4 commits into from
Aug 21, 2024

Conversation

orlp
Copy link
Collaborator

@orlp orlp commented Aug 20, 2024

No description provided.

@github-actions github-actions bot added internal An internal refactor or improvement rust Related to Rust Polars labels Aug 20, 2024
Copy link

codecov bot commented Aug 20, 2024

Codecov Report

Attention: Patch coverage is 60.00000% with 30 lines in your changes missing coverage. Please review.

Project coverage is 80.21%. Comparing base (67551b6) to head (7402f0a).
Report is 34 commits behind head on main.

Files Patch % Lines
crates/polars-core/src/frame/mod.rs 60.27% 29 Missing ⚠️
crates/polars-stream/src/nodes/select.rs 0.00% 1 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

}
// 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> {
Copy link
Member

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@ritchie46 ritchie46 merged commit 276990e into pola-rs:main Aug 21, 2024
24 checks passed
@c-peters c-peters added the accepted Ready for implementation label Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation internal An internal refactor or improvement rust Related to Rust Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants