Skip to content

BUG: Patch float and uint handling in to_numeric #15024

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
wants to merge 1 commit into from

Conversation

gfyoung
Copy link
Member

@gfyoung gfyoung commented Dec 31, 2016

  1. Patches float handling by reducing the "closeness" level when checking conversions.
  2. Patches uint handling by allowing casts to uint dtypes of equal or lesser size to int64 (when values are less than INT64_MAX

Closes #14941.
Follow-up to #15005.

@codecov-io
Copy link

codecov-io commented Dec 31, 2016

Current coverage is 84.77% (diff: 100%)

Merging #15024 into master will not change coverage

@@             master     #15024   diff @@
==========================================
  Files           145        145          
  Lines         51123      51123          
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits          43337      43337          
  Misses         7786       7786          
  Partials          0          0          

Powered by Codecov. Last update 0252385...9e35819

@jreback jreback added Bug Dtype Conversions Unexpected or buggy dtype conversions labels Dec 31, 2016
@jreback jreback added this to the 0.20.0 milestone Dec 31, 2016
@jreback
Copy link
Contributor

jreback commented Dec 31, 2016

thanks!

@jreback jreback closed this in 5353e59 Dec 31, 2016
@gfyoung gfyoung deleted the to-numeric-uint branch December 31, 2016 18:52
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pd.to_numeric(series, downcast='integer') does not prpoerly handle floats over 10,000
3 participants