BUG: Handling NaN case before dtype conversion #40638
- [ ] closes #40638
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
Handles the NA/NaN case before the dtype conversion
Hello @Sudomarko! 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-04-19 03:59:09 UTC This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this. @Sudomarko closing as stale. ping when ready to continue and i'll re-open.