BUG/ENH: Fix apply to only call `func` once on the first column/row
closes #33879
closes #30815
closes #31620
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
