Skip to content

_ensure_numeric does not check for complex numbers #4902

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

Closed
alefnula opened this issue Sep 20, 2013 · 0 comments · Fixed by #4904
Closed

_ensure_numeric does not check for complex numbers #4902

alefnula opened this issue Sep 20, 2013 · 0 comments · Fixed by #4904
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions Numeric Operations Arithmetic, Comparison, and Logical operations
Milestone

Comments

@alefnula
Copy link
Contributor

_ensure_numeric from pandas.core.nanops does not include a check for complex numbers, just converts them to floats.

Relevant StackOverflow question that found the bug: python pandas complex number

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions Numeric Operations Arithmetic, Comparison, and Logical operations
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant