BUG: inconsistency in dtype of replace() #44864
- [ ] closes #xxxx
- [x] tests added / passed
- [ ] 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

can you write a test for this Hello @jreback and @jbrockmendel, 
0cdfa4d1c1dfda5257e3838d06a145de9403a278 - has the same changes as in this last commit.
But 0cdfa4d1c1dfda5257e3838d06a145de9403a278  completed all tests succsesfull. 
Looks like that here is some problem with 
Database / Linux_py38_IO (ci/deps/actions-38-db-min.yaml) (pull_request)  https://codecov.io, not in my code.

Could you please help me? 
 @vsydoriak99 this PR needs a test @vsydoriak99 don't worry about the codecov issue, that usually resolves itself if we wait a while.

What this PR needs is a test for the fixed behavior.  In either tests.frame.methods.test_replace or tests.series.methods.test_replace Hello @vsydoriak99! 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-16 16:33:29 UTC @vsydoriak99 if you'd merge master and address comments This pull request is stale because it has been open for thirty days with no activity. Please [update](https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#updating-your-pull-request) and respond to this comment if you're still interested in working on this. @vsydoriak99 can you rebase and address comments Thanks for the PR, but it appears to have gone stale. If interested in continuing, please address the merge conflict and comments and we can reopen. 