Here is the solution to issue #43085 Basically, you have to make sure that the df2 after reindexing is stored again in df2
- [ ] closes #43085 



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

* In the file [`pandas/reindex.py`](https://github.com/pandas-dev/pandas/blob/4f687079dce519d6642bf2260c1086ce770c7572/pandas/reindex.py):

> [Line 6:4](https://github.com/pandas-dev/pandas/blob/4f687079dce519d6642bf2260c1086ce770c7572/pandas/reindex.py#L6): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 7:1](https://github.com/pandas-dev/pandas/blob/4f687079dce519d6642bf2260c1086ce770c7572/pandas/reindex.py#L7): [W391](https://duckduckgo.com/?q=pep8%20W391) blank line at end of file

 Hi @pragatimehra21. Thanks for the contribution, but this should not be added as a PR. This is just a code snippet which you have inserted into a file. It is better for you to post the code snippet in the underlying Issue.

We would of course welcome a PR that corrected the part of the code where the problem lies, with your solution according to proper code standards.