BUG: fixed index power operation
* The power operation on a range of indexes was fixed. See issue #14973

 - [ ] closes #14973
 - [ ] tests added / passed
 - [ ] passes ``git diff upstream/master | flake8 --diff``
 - [ ] whatsnew entry
