CLN: Numpy compat functions namespace
- [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


Should we do something about the private variables ``_np_version_under1p19`` and ``_np_version_under1p20`` too?

cc @jreback
let's save this until we revert the numpy fixes Sounds good, will fix the errors in the meantime. Will reopen when reverted  Reopening since the other commit was reverted. Should we make ``_np_version_under1p19`` and ``_np_version_under1p20`` make non private to move them too? > Reopening since the other commit was reverted. Should we make `_np_version_under1p19` and `_np_version_under1p20` make non private to move them too?

yes Done, opened #39283 thanks @phofl 