Skip to content

BUG: Series(strings).astype("float64[pyarrow]") raising #50430

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

Merged

Conversation

lukemanley
Copy link
Member

@lukemanley lukemanley commented Dec 24, 2022

Fixes the following:

import pandas as pd

ser = pd.Series(["1.0"])
ser.astype("float64[pyarrow]")  # -> ArrowInvalid: Could not convert '1.0' with type str: tried to convert to double

@lukemanley lukemanley added Bug Dtype Conversions Unexpected or buggy dtype conversions Arrow pyarrow functionality labels Dec 24, 2022
@mroeschke mroeschke modified the milestones: 1.5.3, 2.0 Dec 24, 2022
@mroeschke mroeschke merged commit 0971f55 into pandas-dev:main Dec 24, 2022
@mroeschke
Copy link
Member

Thanks @lukemanley

@lukemanley lukemanley deleted the arrow-ea-from-sequence-type-conversion branch January 19, 2023 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arrow pyarrow functionality Bug Dtype Conversions Unexpected or buggy dtype conversions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants