-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
IndexingRelated to indexing on series/frames, not to indexes themselvesRelated to indexing on series/frames, not to indexes themselvesPerformanceMemory or execution speed performanceMemory or execution speed performance
Description
Currently, the __getitem__
call in a snippet like
idx = pd.Index([1, 2, 3, 4])
idx[np.array([0, 3])]
does type inference when creating the new Index object (using _shallow_copy_with_infer
), while I think we can always know for sure the result will be another Int64Index (for the above example) ?
Metadata
Metadata
Assignees
Labels
IndexingRelated to indexing on series/frames, not to indexes themselvesRelated to indexing on series/frames, not to indexes themselvesPerformanceMemory or execution speed performanceMemory or execution speed performance