-
Notifications
You must be signed in to change notification settings - Fork 653
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
Do not pin pandas down to patch level #3371
Comments
Fair enough, where there are actual pandas-bugs that affect the test suite, patch releases make a "difference". I put this in quotes, because most times, the failing tests are just skipped or worked around, so mostly the test suite was just pretending to be compatible. In any case, I think the |
Correct me if I'm wrong, but this only really becomes a problem in one of two situations: 1.) Someone wants to pin both a Modin and a pandas version to incompatible versions Is there anything else?
@h-vetinari This may be a little bit of a harsh interpretation of what's happening. For regressions in pandas, rather than introduce those regressions in Modin we skip those specific tests until the release that fixes it. I would not say this is pretending to be compatible.
Yes, but I believe you're also saying to remove the pin from the setup.py. A decent portion of our users are installing from deprecated Python versions (e.g., Python 3.5), and are installing an older version of Modin. We want to ensure that those users still have a library that works on install, and leaving the pin open with a |
I did not mean to be harsh, my apologies. Phrased differently, the differences in compatibility between patch versions are miniscule (for a library following SemVer). I would argue miniscule enough that it makes no difference in practice (though users should of course also strive to be up-to-date with their versions) The point that libraries pinning so tightly does not work on an ecosystem level when many others is your point 1.; multiplied by other libraries also pinning pandas to patch-level. The resolver is already one of the most painful parts of working with environments, and such restrictions could ultimately end up making modin uninstallable in combination with other packages.
That's not necessary. I'm only speaking about the conda-forge packaging (and the warning on start-up; we could also patch this directly in conda-forge). Something like: |
@h-vetinari That would be fine with me starting in pandas 1.4 (at least I don't see any immediate issues). I think we can probably patch out the warning message as well. Would this cause any problems with Omnisci @modin-project/modin-omnisci ? |
Just two points if we are going to support all Pandas patchlevel versions.
|
Hi @gshimansky @h-vetinari @vnlitvinov and @devin-petersohn has this issue been resolved? |
This is overkill and not scalable (especially for a library/framework). You are not responsible for pandas-bugs, pandas is (and your users should be free to have the bugs in pandas fixed independently of which version you test in CI; if pandas releases a new patch release tomorrow, you're actively preventing your users from getting those fixes, because you claim you need to vet them for them first, which is paternalistic at best). A more reasonable approach (more coverage, less CI jobs) would be to test against pandas Still, realistically no-one is going to want to use 1.5.1 if 1.5.3 is available. If they so choose regardless, then they should be free to Footnotes
|
@h-vetinari I agree with you and we have consensus from a few modin contributors (including @vnlitvinov and @devin-petersohn offline) that we should stop pinning to patch version. So I think at this point we're ready for a PR. |
I wonder if just running with |
1.5.3 doesn't exist yet, I just used that version to make my point. I'd still prefer to just specify pandas down to only the minor version, but even so, |
Loosening the requirements to |
Fair enough if supporting more than one pandas minor version is too much effort for now (considering how closely modin sticks to pandas); again, |
At some point we have made some backwards progress on this. I agree with what has been said here and propose the following concrete steps:
|
Signed-off-by: mvashishtha <[email protected]>
Signed-off-by: mvashishtha <[email protected]>
Co-authored-by: Anatoly Myachev <[email protected]> Signed-off-by: mvashishtha <[email protected]>
From conda-forge/modin-feedstock#21:
Xref #3369
The text was updated successfully, but these errors were encountered: