BUG: Fixed DataFrame.__repr__ Type Error when column dtype is np.record (GH 48526)
- [x] closes #48526
- [x] [Tests added and passed]
- [x] All [code checks passed]
- [x] Added an entry in the latest `doc/source/whatsnew/v1.6.0.rst` file if fixing a bug or adding a new feature.

This pull request is stale because it has been open for thirty days with no activity. Please [update](https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#updating-your-pull-request) and respond to this comment if you're still interested in working on this. > This pull request is stale because it has been open for thirty days with no activity. Please [update](https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#updating-your-pull-request) and respond to this comment if you're still interested in working on this.

still interested Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen. @mroeschke 
Can we re-open the pull request? I merged the main branch and your first and second review comment were already considered: I moved the test to `pandas/tests/frame/test_repr_info.py` and also checked against `repr(df)`. I commented on your last review comment but never got an answer if my explanation was sufficient or not.
Thank you in advance. Sure, reopened this pull request @mroeschke 
It passes the CI tests, but there is some connection problem with codecov:
"['error'] There was an error running the uploader: Error uploading to [https://codecov.io:](https://codecov.io/) Error: There was an error fetching the storage URL during POST: 503 - upstream connect error or disconnect/reset before headers. reset reason: connection failure" Thanks for sticking with this @RaphSku 