-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Cannot use np.round or np.around on Float64Index #7446
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
Comments
pls show exact code which is not working as well as pd.show_versions() |
|
Sorry if this issue appeared twice; doesn't seem to be showing up in my "created by you" list. I was accidentally using a VE with pandas 0.13.1. It seems to have been corrected since. Here is the full error.
|
This is likely thanks to a change in how Float64Index is stored internally in 0.14: #6471 |
Tight, thanks for the help |
np.round()/np.around() currently don't work on Flaot64Index, because the Float64Index is throwing an error when Float64Index.round() is called.
In our application, we are getting floating point digit discrepancies when doing subtraction and other floating point operations on these indicies, and I believe rounding would solve the problem.
Original mailing list thread:
https://groups.google.com/forum/#!topic/pydata/8aTLVKrPJfs
I'm using pandas.read_csv(), so I can't access the data apriori to it being written into a dataframe to round it before instantiation.
The text was updated successfully, but these errors were encountered: