Skip to content

feat: Add empty_as_null and keep_nulls to {Lazy,Data}Frame.explode#25369

Merged
ritchie46 merged 2 commits intopola-rs:mainfrom
coastalwhite:feat/frame-explode
Nov 17, 2025
Merged

feat: Add empty_as_null and keep_nulls to {Lazy,Data}Frame.explode#25369
ritchie46 merged 2 commits intopola-rs:mainfrom
coastalwhite:feat/frame-explode

Conversation

@coastalwhite
Copy link
Copy Markdown
Collaborator

@coastalwhite coastalwhite commented Nov 15, 2025

Matches the Expr.explode parameters that were introduced as well.

Fixes #15224.

Matches the `Expr.explode` parameters that were introduced as well.
@github-actions github-actions Bot added enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars labels Nov 15, 2025
@github-actions github-actions Bot added the changes-dsl Do not merge if this label is present and red. label Nov 15, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 15, 2025

Codecov Report

❌ Patch coverage is 90.86022% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.09%. Comparing base (57074c9) to head (fc33bdc).
⚠️ Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
crates/polars-plan/src/plans/functions/mod.rs 56.52% 10 Missing ⚠️
...rates/polars-python/src/lazyframe/visitor/nodes.rs 0.00% 4 Missing ⚠️
crates/polars-core/src/frame/explode.rs 94.00% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             main   #25369    +/-   ##
========================================
  Coverage   82.09%   82.09%            
========================================
  Files        1711     1711            
  Lines      237304   237426   +122     
  Branches     3013     3013            
========================================
+ Hits       194807   194911   +104     
- Misses      41724    41742    +18     
  Partials      773      773            

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ritchie46
Copy link
Copy Markdown
Member

Nice to have all options now!

@ritchie46 ritchie46 merged commit 1e6ad76 into pola-rs:main Nov 17, 2025
30 checks passed
@coastalwhite coastalwhite deleted the feat/frame-explode branch November 17, 2025 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changes-dsl Do not merge if this label is present and red. enhancement New feature or an improvement of an existing feature python Related to Python Polars rust Related to Rust Polars

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add parameter keep_empty to DataFrame.explode()

2 participants