DEPR: added deprecation warning for NDFrame.bool
- [x] closes #51749
- [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).
- [ ] 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/vX.X.X.rst` file if fixing a bug or adding a new feature.

You'll need to update the docs to remove/suppress deprecated usages 
> You'll need to update the docs to remove/suppress deprecated usages

Sorry, but I coudn't understand can please explain it again or are you talking about adding a whatsnew entry @ramvikrams - the method you are deprecating is used in our documentation. Building the docs now emits warnings; the documentation needs to be adjusted so that these warnings no longer appear:

https://github.com/pandas-dev/pandas/actions/runs/4323640786/jobs/7547478298#step:6:67 > @ramvikrams - the method you are deprecating is used in our documentation. Building the docs now emits warnings; the documentation needs to be adjusted so that these warnings no longer appear:
> 
> https://github.com/pandas-dev/pandas/actions/runs/4323640786/jobs/7547478298#step:6:67


I actually looked over the net and revious pr's but could not find out how to adjust the documentation , can you please sujjest a walkthrough or any pr that had the same issue > can you please sujjest a walkthrough or any pr that had the same issue

#51395 So should I remove the examples from docstring of bool and other bool instances in the doc > So should I remove the examples from docstring of bool and other bool instances in the doc

I think you should leave the examples in. You can add them to the filtered warnings here:

https://github.com/pandas-dev/pandas/blob/27f7365e3ea3d8827b7ccd210f2f9a39aa3cf601/pandas/conftest.py#L133 @rhshadrach actually now I did the required changes but still `Doc Build and Upload` fails could you please check /preview Website preview of this PR available at: https://pandas.pydata.org/preview/51756/ @rhshadrach is the PR mergeable now Thanks @ramvikrams! > Thanks @ramvikrams!

thanks sir