Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
to_numeric segmentation fault with empty object series #16302
from pandas import Series, to_numeric data = Series(dtype=object) to_numeric(data, errors='coerce', downcast='integer')
Further tracing seems to indicate the problem is likely here:
Running to_numeric with an empty object series causes a segmentation fault on version 0.20.1. This did not occur in version 0.19.0.
An empty numeric series, or a ValueError.