Convert bins to numeric for histogram if a string
Fixes #29484

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