-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
InternalsRelated to non-user accessible pandas implementationRelated to non-user accessible pandas implementation
Description
integer index with float data types:
>>> i
Int64Index([1, 2], dtype='int64')
>>> i._shallow_copy(i.values.astype('f8'))
Int64Index([1.0, 2.0], dtype='float64')
another issue: an index which is not equal to its copy:
>>> i
Float64Index([1.0, 2.0], dtype='float64')
>>> j = i._shallow_copy(i.values.astype('O'))
>>> j
Float64Index([1.0, 2.0], dtype='object')
>>> j.equals(i)
False
>>> j.equals(j.copy())
False
Metadata
Metadata
Assignees
Labels
InternalsRelated to non-user accessible pandas implementationRelated to non-user accessible pandas implementation