CLN: consolidate Index.astype #18704
Labels
Clean
Dtype Conversions
Unexpected or buggy dtype conversions
Indexing
Related to indexing on series/frames, not to indexes themselves
Milestone
we have some code repitiion in
*Index.astype
, IOW each subclass implements a lot of the same boilerplate / logic. I think we could make this a bit simpler (maybe have a class attribute whichIndex.astype
can check for valid types, and override this in sub-classes). just a thought.xref #18677
The text was updated successfully, but these errors were encountered: