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 from_list/2 of list of structs when first is empty #849

Merged
merged 2 commits into from
Feb 7, 2024

Conversation

philss
Copy link
Member

@philss philss commented Feb 7, 2024

Closes #847

@philss philss changed the title Fix from_list/2 of list of structs when fist is empty Fix from_list/2 of list of structs when first is empty Feb 7, 2024
else
polars_series
end
end)
Copy link
Member Author

Choose a reason for hiding this comment

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

Just to give a context, the problem was because the "empty" inner struct series were getting a different dtype, because it couldn't be "inferred" from the series alone (since it was empty).
The cast will force those empty struct series to keep the same dtype.

@philss philss merged commit 24fa10d into main Feb 7, 2024
3 checks passed
@philss philss deleted the ps-fix-struct-in-list-bug branch February 7, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid Struct contents with {:list, {:struct, %{...}}
2 participants