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

Pandas and time zone (tz) info. #28

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

simongarisch
Copy link
Contributor

Hi there.

The current version of pandas throws an error when comparing trading_days (with tz=UTC) to a standard python datetime with no tz info. Basically, it wants the time zone info to be consistent. I've added a few minor changes to make this work.

It also looks like the data coming back for the test file is slightly different. I've modified expected return values slightly, so have a quick look and let me know what you think. The tests should now be passing.

Pandas is also grumbling a touch about Panel => FutureWarning: Panel is deprecated and will be removed in a future version. Perhaps it'd be better to specify a particular pandas version in requirements.txt rather than pandas>=0.17.0... always tough with the Pandas deprecations.

Cheers,
Simon.

@Emsu
Copy link
Owner

Emsu commented Aug 1, 2019

@simongarisch happy to merge once tests past. Looks like the test is still failing right now. Thanks for contributing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants