We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In[2]: df = pd.DataFrame(columns=['maybe_empty_column']) ...: pd.to_numeric(df['maybe_empty_column'], errors='ignore') Process finished with exit code -1073741819 (0xC0000005)
When calling to_numeric on an empty DataFrame column, python crashes with an access violation exit code (0xC0000005).
to_numeric
Should return an empty series with default dtype for empty series (int64)
for some reason, some empty Series objects work and some don't:
empty_that_works = pd.Series(['blabla',])[1:] pd.to_numeric(empty_that_works) empty_that_doesnt_work = pd.Series(dtype=object) pd.to_numeric(empty_that_doesnt_work)
pd.show_versions()
The text was updated successfully, but these errors were encountered:
Fixed in #16305 I believe (0.20.2 was released today, so you can try upgrading). Let me know if that doesn't fix it for you.
Sorry, something went wrong.
No branches or pull requests
Crash sample
Problem description
When calling
to_numeric
on an empty DataFrame column, python crashes with an access violation exit code (0xC0000005).Expected Output
Should return an empty series with default dtype for empty series (int64)
for some reason, some empty Series objects work and some don't:
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: