Regression in offsets caused offsets to be no longer hashable
- [x] closes #37267
- [x] tests added / passed Not quite sure, if these test is sufficient, if yes, I would tests for other functions.
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry

great code change looks good. if you'd report on the asv's we can merge. Thanks, benchmark has just finished. No changes

``BENCHMARKS NOT SIGNIFICANTLY CHANGED.`` thanks @phofl nice