DOC: to_hdf() method docstring updated with dropna and index
Resolves GitHub Issue #45030

- [x] closes #45030 
- [ ] tests added / passed
- [x] 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

@github-actions pre-commit @github-actions pre-commit Hey, thx for tackling this. I think there are a few places where this might be missing too. Should have mentioned in the issue

HDFStore.append and HDFStore.put are candidates.  > Hey, thx for tackling this. I think there are a few places where this might be missing too. Should have mentioned in the issue
> 
> HDFStore.append and HDFStore.put are candidates.

Cheers, I'm getting a couple of failing checks in the github actions, not entirely sure hwat is going on as I only updated docstrings. Can you lend me some adivce cheers? They are unrelated Hello @fanoway! 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-12-27 03:00:08 UTC > 

Ok cheers. I fixed all the doc strings for the HDFStoe.put() and HDFStore.append() as they were missing quite a few parameters @fanoway you can install pre-commit locally which will check a few styling things @fanoway Are you interested in continuing? Thanks for the pull request, but it appears to have gone stale. If interested in continuing please merge in main, address the comments and we can reopen