ENH/CLN: Add factorize to IndexOpsMixin
Merge pull request #7090 from sinhrks/factorize

ENH/CLN: Add factorize to IndexOpsMixin