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): Fix dtype parameter in pandas_to_pyseries function #15948

Merged
merged 2 commits into from
Apr 29, 2024

Conversation

luke396
Copy link
Contributor

@luke396 luke396 commented Apr 29, 2024

closes #15939, and is a little fix for #15933

Copy link
Member

@ritchie46 ritchie46 left a comment

Choose a reason for hiding this comment

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

Thank you!

@ritchie46 ritchie46 merged commit 2805eca into pola-rs:main Apr 29, 2024
11 of 13 checks passed
@MarcoGorelli
Copy link
Collaborator

thanks @luke396 ! does this work for pyarrow path? fancy making a follow-up PR in which you add a test for

    s = pl.Series("foo", pd.Series([1, 2, 3], dtype='Int64'), pl.Float32)
    assert_series_equal(s, pl.Series("foo", [1, 2, 3], dtype=pl.Float32))

(and possibly fixup the code if necessary)?

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.

pl.Series(name, pandas_series, dtype) ignores dtype
3 participants