Do not sort indices multiple times at internal .mask()
#4138
Labels
Performance 🚀
Performance related issues and pull requests.
.mask()
#4138
During
PandasDataframe.mask()
flow the passed indices are being sorted multiple times: [1] [2] [3], this negatively affects the performance, especially if the amount of indices to take is huge (for example boolean masking with a lot ofTrue
values).We should eliminate repeating sort operations.
The text was updated successfully, but these errors were encountered: