Resolving Index Resetting for tz_localize
- [x] closes #43080 
- [x] tests added / passed
   I have added a test function `test_series_tz_localize_matching_index`  in `test_tz_localize.py`
- [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
   Index of the original series is preserved while converting `categorical` data to `datetime`

Hello @kurchi1205! 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-09-03 07:38:24 UTC @mroeschke  Can you please review this pull request . As the pep8speaks comment notes, you have some code style issues in your test.

Please run `pre-commit` on your code before committing them: https://pandas.pydata.org/pandas-docs/stable/development/contributing_codebase.html#pre-commit I have solved the code issues using `pre-commit` . I have made the change in the documentation .  I assume some maintainer has to merge the pull request. How to solve this timeout error ? lgtm @phofl merge when good Can someone help me understand this failing test ? How are my changes affecting this test case ? Thx @kurchi1205  ok thnx for the clarification