Skip to content

Deprecate old pandas support#1530

Merged
shoyer merged 8 commits into
pydata:masterfrom
fujiisoup:deprecate_old_numpy
Aug 31, 2017
Merged

Deprecate old pandas support#1530
shoyer merged 8 commits into
pydata:masterfrom
fujiisoup:deprecate_old_numpy

Conversation

@fujiisoup

Copy link
Copy Markdown
Member
  • Closes rolling requires pandas >= 0.18 #1512
  • Tests passed
  • Passes git diff upstream/master | flake8 --diff
  • Fully documented, including whats-new.rst for all changes and api.rst for new API

Explicitly 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.

@jhamman jhamman left a comment

Copy link
Copy Markdown
Member

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.

@jhamman jhamman modified the milestone: 0.10 Aug 28, 2017
@jhamman jhamman mentioned this pull request Aug 28, 2017
13 tasks
Comment thread doc/whats-new.rst Outdated
(:issue:`576`).
By `Stephan Hoyer <https://github.com/shoyer>`_.

- Deprecate supports of old numpy < 1.11 and pandas < 0.18 (:issue:`1512`).

Copy link
Copy Markdown
Member

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.

Comment thread xarray/core/npcompat.py Outdated

try:
from numpy import broadcast_to, stack, nanprod, nancumsum, nancumprod
from numpy import nanprod, nancumsum, nancumprod

Copy link
Copy Markdown
Member

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

Comment thread xarray/core/npcompat.py Outdated
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).

Copy link
Copy Markdown
Member

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

@shoyer shoyer merged commit 0b2424a into pydata:master Aug 31, 2017
@shoyer

shoyer commented Aug 31, 2017

Copy link
Copy Markdown
Member

Thanks @fujiisoup !

@fujiisoup fujiisoup deleted the deprecate_old_numpy branch November 4, 2017 09:51
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.

3 participants