awslabs / gluonts

Probabilistic time series modeling in Python
https://ts.gluon.ai
Apache License 2.0
4.57k stars 749 forks source link

Fix issues related to new Pandas offset names #3117

Closed lostella closed 8 months ago

lostella commented 8 months ago

Description of changes: hour offset in pandas 2.2 has now .name == h and not H. Others have change as well, breaking some of the time features and lags logic. This PR makes things work for both pandas <2.2 and >=2.2

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Please tag this pr with at least one of these labels to make our release process faster: BREAKING, new feature, bug fix, other change, dev setup