REGR: Barplot broken on Index(dtype='object')
- [ ] closes #38947
- [x] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
- [ ] whatsnew entry

Hello @SabrinaMB! Thanks for updating this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:



There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers: 

##### Comment last updated at 2021-10-14 20:20:54 UTC Thanks for the PR @SabrinaMB , please could you fix the flake8 issues below as per CI.

MIght be worth reading our contributing guide here: https://pandas.pydata.org/pandas-docs/stable/development/contributing.html

Please could you also update the PR title to something more descriptive.

Thanks!

```
flake8..........................................................................................................Failed
- hook id: flake8
- exit code: 1

pandas/tests/plotting/test_misc.py:470:20: C407 Unnecessary list comprehension - 'all' can take a generator.
pandas/tests/plotting/test_misc.py:476:9: F841 local variable 'e' is assigned to but never used
``` can you merge master and update to comments can you merge master and update to comments This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this. Thanks for the PR, but it appears to have gone stale. If interested in continuing please merge the main branch and address the review and we can reopen.