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

fix: Make pl.struct serializable #11169

Merged
merged 1 commit into from
Sep 18, 2023
Merged

fix: Make pl.struct serializable #11169

merged 1 commit into from
Sep 18, 2023

Conversation

reswqa
Copy link
Collaborator

@reswqa reswqa commented Sep 17, 2023

This fixes #11100.

@github-actions github-actions bot added fix Bug fix python Related to Python Polars rust Related to Rust Polars labels Sep 17, 2023
@reswqa reswqa marked this pull request as ready for review September 17, 2023 17:52
@@ -3,16 +3,15 @@ use super::*;

/// Take several expressions and collect them into a [`StructChunked`].
#[cfg(feature = "dtype-struct")]
pub fn as_struct(exprs: &[Expr]) -> Expr {
map_multiple(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In the long run, do we plan to reduce the use of anonymous functions?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, in fact existing anonymous functions should be rewritten to the common style and implementation dispatched to polars-ops.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sounds good, I will find some time to help rewrite this. :)

@ritchie46 ritchie46 merged commit 27ec68e into pola-rs:main Sep 18, 2023
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Bug fix python Related to Python Polars rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pl.struct not serializable
2 participants