DOC: fix DataFrame.nunique docstring and doctests
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`

Based on #22459. Fix the docstring for DataFrame.nunique. I also updated `ci/code_checks.sh`.

