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 single column 2d array polars df #830

Merged
merged 1 commit into from
Nov 28, 2023
Merged

fix single column 2d array polars df #830

merged 1 commit into from
Nov 28, 2023

Conversation

jmoralez
Copy link
Member

@jmoralez jmoralez commented Nov 27, 2023

A recent version of polars made it so that polars.DataFrame(single_column_2d_array, schema=['x']) returns a list column. This uses the dict constructor to ensure that we get the correct result when building a polars dataframe from a 2d array with a single or multiple columns.

@jmoralez jmoralez added the fix label Nov 27, 2023
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@jmoralez jmoralez requested a review from cchallu November 27, 2023 20:57
@jmoralez jmoralez merged commit 5c4ef1a into main Nov 28, 2023
13 checks passed
@jmoralez jmoralez deleted the fix-polars branch November 28, 2023 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants