ZeroDivisionError when groupby rank with method="dense" and pct=True
- [x] closes #23666 
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
