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
docstring seem to suggest that this ought to convert to NaN:
In [10]: s = pd.Series([1, 'na', 3 ,4]) In [11]: s.convert_objects(convert_numeric=True) Out[11]: 0 1 1 na 2 3 3 4 dtype: object
Docstring:
convert_numeric : boolean, default True if True attempt to coerce to numbers (including strings), non-convertibles get NaN
However, does work if the non-strings are stringified first
In [142]: pd.Series([1, 'na', 3 ,4]).astype(str).convert_objects(convert_numeric=True) Out[142]: 0 1 1 NaN 2 3 3 4 dtype: float64
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
docstring seem to suggest that this ought to convert to NaN:
Docstring:
However, does work if the non-strings are stringified first
The text was updated successfully, but these errors were encountered: