PERF: Remove redundant index reassignment in query() with one-level index #6583
Labels
P2
Minor bugs or low-priority feature requests
Performance 🚀
Performance related issues and pull requests.
this assignment is redundant for a one-level index: https://github.com/pandas-dev/pandas/blob/68268458ae3091875841b750c9763e64de835e2f/pandas/core/generic.py#L596
Modin on pandas storage format has to copy the index metadata to the partitions.
I don't want to try contributing this change to pandas because pandas copies the index by reference and there's no performance penalty that I know of.
The text was updated successfully, but these errors were encountered: