-
Notifications
You must be signed in to change notification settings - Fork 21
Fixes for sparse matrix in Pandas 1.0 #69
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
Conversation
For now, there seems to be a bug in pandas; so we may need to wait on that. I think (still need to confirm) that this is the source of the test failures.
|
I probably will not have time to look at this in detail this week. |
|
@sroet : That's the problem. We currently go from scipy to pandas. I've gone through the steps in that guide (that's why the code runs now with an error in correctness, not an error in running). The bug in pandas-dev/pandas#29814 is that pandas isn't reading correctly from Still haven't verified that this is definitely the same problem as that, but it seems pretty likely, since it is an unresolved pandas bug with making sparse DFs from scipy matrices. Main question then is, do we release 0.5.0 pinned to an older version of pandas? (i.e., without this PR). Since it seems like we're both pretty busy, I lean toward pinning pandas and releasing 0.5.0 to avoid more users having problems like #67. |
+1 on this |
|
I've got a monkey patch working for this, but I want to see if it can get fixed quickly in pandas instead. In any case, supporting py27 is now definitely too cumbersome. We'll release this as a 0.5.1 (hopefully without needing to monkeypatch pandas), but then let's move master to 0.6.0.dev0, dropping py27. I also vote for dropping win_32 testing from AppVeyor, instead using highest/lowest Python versions (giving 2 tests instead of 4; free AppVeyor doesn't run in parallel). Our AppVeyor testing is based on MDTraj, and probably MDTraj of 7 years ago. |
|
LGTM, feel free to merge at your discretion (if pandas fix takes to long)
+1 for dropping py27 and win_32 |
|
It looks like this problem may have been resolved by pandas-dev/pandas#32825 (although I can't seem to get a working dev build of pandas going to verify it.) That's a complete rewrite of I will also release 0.5.1, which will mean I stop getting emails about our stable branch failing on Travis because MDTraj-dev no longer supports Py2 (see #75). |
This gets the tests running under pandas 1.0, but they fail with an assertion error. I think (still need to confirm) that this is the same as pandas-dev/pandas#29814. If so, then it is a bug in pandas.
Maybe release 0.5.0 with a pin to
pandas<1? It doesn't look like it is easy to generate sparse matrices directly from dict-of-keys in pandas; pandas seems to prefer to take a dense matrix and make it sparse. We don't want to create the dense matrix in the first place.