-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Deprecate old pandas support #1530
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great. Thanks for taking this on. 0.10 is right around the corner and it will be great to have this in there.
doc/whats-new.rst
Outdated
@@ -55,6 +55,10 @@ Enhancements | |||
(:issue:`576`). | |||
By `Stephan Hoyer <https://github.com/shoyer>`_. | |||
|
|||
- Deprecate supports of old numpy < 1.11 and pandas < 0.18 (:issue:`1512`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should go to the top of the release notes, under a heading "Backwards incompatible changes"
Also: these versions aren't just deprecated -- they are no longer supported at all.
xarray/core/npcompat.py
Outdated
@@ -4,139 +4,11 @@ | |||
import numpy as np | |||
|
|||
try: | |||
from numpy import broadcast_to, stack, nanprod, nancumsum, nancumprod | |||
from numpy import nanprod, nancumsum, nancumprod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove nanprod
, too -- it arrived in NumPy 1.10
xarray/core/npcompat.py
Outdated
@@ -4,139 +4,11 @@ | |||
import numpy as np | |||
|
|||
try: | |||
from numpy import broadcast_to, stack, nanprod, nancumsum, nancumprod | |||
from numpy import nanprod, nancumsum, nancumprod | |||
except ImportError: # pragma: no cover | |||
# Code copied from newer versions of NumPy (v1.10 to v1.12). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v1.10 to v1.12
-> v1.12
Thanks @fujiisoup ! |
git diff upstream/master | flake8 --diff
whats-new.rst
for all changes andapi.rst
for new APIExplicitly deprecated old pandas (< 0.18) and old numpy (< 1.11) supports.
Some backported functions in
npcompat
are removed because numpy == 1.11 already has them.