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

Fix for pandas 1.0 #124

Merged
merged 15 commits into from Jun 9, 2020
Merged

Fix for pandas 1.0 #124

merged 15 commits into from Jun 9, 2020

Conversation

atkinson
Copy link
Contributor

@atkinson atkinson commented Jun 3, 2020

FIXED for Pandas >= 1.0.0

  • as_matrix() was deprecated then removed. to_numpy() works in this situation

  • updated travis to include pandas 1.0.x, python 3.7 numpy 1.18 and scipy 1.4.x

    • previously travis only had very old pandas, and this change is not backwards compatible before Pandas 0.23
  • kept a python 2.7 build with the last supported versions of pydata.

atkinson and others added 12 commits June 3, 2020 14:24
…py 1.4.x - kept a python 2.7 with the last supported versions of pydata.
* as_matrix was deprecated then removed. to_numpy() works in this situation

* updated travis to include pandas 1.0.x, python 3.7 numpy 1.18 and scipy 1.4.x 

* kept a python 2.7 build with the last supported versions of pydata.

* versions compatible with conda for travis
@twiecki
Copy link
Contributor

twiecki commented Jun 4, 2020

Thanks for taking this on! Unfortunately due to being tied to zipline we need to maintain compat with their pandas requirements which are older (currently pandas>=0.18.1,<=0.22). Can you keep those tests in? Or at least 0.22?

@atkinson
Copy link
Contributor Author

atkinson commented Jun 5, 2020

Hey - we could bridge the gap with a try: except: block - try to_numpy() first, then to_matrix() if that fails.

Shall I do that? Then the older tests should pass as well.

@atkinson
Copy link
Contributor Author

atkinson commented Jun 5, 2020

here it is - I left a comment in the code to explain too.

@twiecki twiecki merged commit b026b4e into quantopian:master Jun 9, 2020
@twiecki
Copy link
Contributor

twiecki commented Jun 9, 2020

Thanks!

@atkinson
Copy link
Contributor Author

My pleasure. Any chance we could push a release so I can use as a dependency?

@twiecki
Copy link
Contributor

twiecki commented Jun 24, 2020

@richafrank I tagged a new release but couldn't upload to pypi due to permissions. Could you do that?

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.

None yet

2 participants