Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies and changes for pandas 2.0 #299

Merged
merged 2 commits into from
Apr 9, 2023
Merged

Update dependencies and changes for pandas 2.0 #299

merged 2 commits into from
Apr 9, 2023

Conversation

maread99
Copy link
Collaborator

@maread99 maread99 commented Apr 8, 2023

Updates dependencies and makes changes to accommodate pandas 2.0.

Changes mainly relate to pandas default timezone changing from pytz.UTC to datetime.timezone.utc. These revisions
retain all timezones in exchange_calendars as pytz.

Also:

@gerrymanoim - my intention's to merge this tomorrow and cut a new release as anyone currently installing exchange_calendars with pandas 2.0 will be experiencing behavior changes with regards to timezones and at least XKRX will be raising an error. Aside from tests for XKRX, 5 tests were failing and the test suite was raising a plethora of Warnings. With this PR there's just one Warning remaining which I'll raise an issue for (#300).

Changes to accommodate changes in pandas 2.0. Mainly
responding to pandas default tz changing from `pytz.UTC` to
`datetime.timezone.utc`. These revisions retain all timezones
as pytz in `exchange_calendars`.

Also:
* makes changes in light of new pandas Warnings.
* resolves #294 which moved from `FutureWarning` to Error
when `CustomBusinessDay.apply` was deprecated in pandas 2.0.
Includes updating pandas to 2.0.
@maread99 maread99 added bug Something isn't working dependencies Pull requests that update a dependency file labels Apr 8, 2023
@maread99
Copy link
Collaborator Author

maread99 commented Apr 8, 2023

There are no changes that would warrant the benchmark regression, which makes me suspect it's down to something inherent in pandas 2.0(?).

Edit: benchmark passed on re-running the job (I'm assuming that's not due to the failed run having reset the benchmark?).

@maread99 maread99 merged commit 1768d2b into master Apr 9, 2023
@maread99 maread99 deleted the deps branch April 9, 2023 08:05
@gerrymanoim
Copy link
Owner

Apologies - I've been on vacation. Thank you for grabbing this - it all looks good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XKRX: FutureWarning: CustomBusinessDay.apply is deprecated ...
2 participants