BUG: groupby.corrwith fails with axis=1 and other=df
- [x] closes #47723
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).

Since this one is only confirmed on master, whatsnew ommited.
Thanks @GYHHAHA!