DEPR: DataFrame.resample axis parameter
- [X] closes #51778(Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [x] Added an entry in the latest `doc/source/whatsnew/v2.1.0.rst` file if fixing a bug or adding a new feature.

From the original issue. The `rolling` axis parameter should be deprecated too ```
/home/runner/micromamba/envs/test/lib/python3.8/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:
17:2: warning: #warning "Using deprecated NumPy API, 
disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
build finished with problems, 2 warnings.
```
The docs build seems to have failed. 
Is there any such known issue ? ( seems unrelated to the changes made in this PR ) seems like this issue has already been worked upon and merged by #51997  ( CC: @jbrockmendel , @mroeschke  )
[ I guess except for the `resample` part ] Ah yes, sorry @dannyi96. As you mentioned, this PR can still deprecate the axis parameter for resample if you're still interested  > Ah yes, sorry @dannyi96. As you mentioned, this PR can still deprecate the axis parameter for resample if you're still interested

Sure @mroeschke , have updated the PR Nice thanks @dannyi96 