ENH: Add return_dict parameter to DataFrame.info() method to return info as a dictionary #59387
- [x] closes #59387 
- [x] Tests added and passed
- [x] All code checks passed
- [x] Added type annotations
- [x] Added an entry in the latest `doc/source/whatsnew/v3.0.0.rst` file if fixing a bug or adding a new feature.

pre-commit.ci autofix pre-commit.ci autofix Thanks for the PR but based on the discussion on the issue there wasn't much interest from the core team for adding this in pandas so closing