gerrymanoim / exchange_calendars

Calendars for various securities exchanges.
Apache License 2.0
425 stars 135 forks source link

Update dependencies and fix pandas 2.2 deprecation warnings #358

Closed maread99 closed 8 months ago

maread99 commented 8 months ago

Updates dependencies.

Fixes pandas 2.2 deprecation warnings concerning deprecation of frequency units "T", "H" and "S" in favor of "min", "h" and "s".

Preemptively constrains numpy dependency to <2 in anticipation of breaking changes with the upcoming major release 2.0. (make changes to accommodate numpy 2.0 post its release, keep exchange_calendars working in the meantime).

Removes python-dateutil from pyproject.toml dependencies (library is a dependency of pandas, not a direct dependency of exchange_calendars).

Also, fixes #355 by removing superfluous kwarg from call in ecal to pd.date_range.