CLN: make Info and DataFrameInfo subclasses
precursor to #31796

Makes Info class and DataFrameInfo subclass so there's no need for all the
```python
if isinstance(data, ABCDataFrame)
```
looks good can you merge master and ping on green. > looks good can you merge master and ping on green.

Thanks @jreback - green now Friendly ping :smile: (sorry to do this, but I can submit a PR for `Series.info` if/when this is merged) thanks @MarcoGorelli very nice