don't need len around shape
#Fix #34274

- [x] closes #34274
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

Thanks @SilasK - could you add a test to show how this fixes the issue? @SilasK this needs a test where this breaks / why you are changing @SilasK can you add a test? https://github.com/pandas-dev/pandas/issues/34645 has an example. @SilasK do you have time to add a test? Sorry, not for the moment. And It would be a test that test that the error message is produced correctly, how do I do that?
 like this: https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#testing-warnings @SilasK Thanks for the PR. closing as stale. LMK if you want to continue and I'll reopen.