-
-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
EnhancementIndexingRelated 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
Recently, I've been working on adding a 'nearest' method to reindexing: #9258
It occurs to me that we could easily extend reindexing/get_indexer methods to work with unordered indexes if we were willing to do a sort operation on the index if necessary. This would probably entail saving the sorted result on the parent index, similarly to how get_indexer is currently supported on MultiIndex by creating a tuple index internally.
I think this would be a nice usability gain over the current implementation, and not be too surprising. Sorting indexes (once) is pretty fast, for anything up to millions of rows.
Thoughts?
Metadata
Metadata
Assignees
Labels
EnhancementIndexingRelated 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