BUG: Restrict DTA to 1D
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

Bug identified in #27015.  Much less-kludgy patch for NDFrame.rank.