Skip to content

Cannot use np.round or np.around on Float64Index #7446

@hughesadam87

Description

@hughesadam87

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions