Solving GL01,GL02 in pandas.Interval and a few mentioned in the comments
- [1] closes #28196
- [0] tests added / passed
- [0] passes `black pandas`
- [0] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [0] whatsnew entry
