REF:  if statements merge + typehint correction
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).

- if statements merge on `pandas/core/frame.py` and `pandas/io/xml.py`

- Function `_generate_index_names_row()`  on `pandas/io/formats/style_render.py` expected a tuple as a parameter but its only reference uses a list, so i altered the typehint

Hello @gugazan! 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 2022-06-21 01:16:12 UTC Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.