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(python): address DataFrame construction error with lists of numpy arrays #11905

Merged

Conversation

alexander-beedie
Copy link
Collaborator

Closes #11896.

Straightforward fix; avoid implicit boolean inference (we know we have a sequence at this point, but that sequence may be a numpy array which -quite rightly- doesn't like implicit bool usage). Also adds the missing test coverage.

@github-actions github-actions bot added fix Bug fix python Related to Python Polars labels Oct 20, 2023
@ritchie46 ritchie46 merged commit 96b465e into pola-rs:main Oct 21, 2023
12 checks passed
@alexander-beedie alexander-beedie deleted the numpy-single-dispatch-constructor branch October 21, 2023 06:52
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating a DataFrame with orient='row' fails when data is a list of numpy arrays
2 participants