TST: Fixed doctest in Styler.to_latex #42672
- [x] closes #42672 
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry

I'm new to contributing to open source and I was wondering how I would go about fixing the failed checks New failures are not related to your changes, they were caused by a xarray upgrade see #42716 hmm do we need to backport this? looks fine, gets us back to (or closer to) a green CI i think thanks @willie3838 