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 errors with isnull() that appear with pandas 0.21 #1549

Merged
merged 1 commit into from
Sep 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ Enhancements
Bug fixes
~~~~~~~~~

- Fix ``isnull()`` to account for changes with pandas 0.21.

- :py:func:`~xarray.open_rasterio` method now shifts the rasterio
coordinates so that they are centered in each pixel.
By `Greg Brener <https://github.com/gbrener>`_.
Expand Down Expand Up @@ -2032,4 +2034,4 @@ Miles.
v0.1 (2 May 2014)
-----------------

Initial release.
Initial release.
2 changes: 1 addition & 1 deletion xarray/core/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def inject_all_ops_and_reduce_methods(cls, priority=50, array_only=True):
setattr(cls, name, cls._unary_op(_method_wrapper(name)))

for name in PANDAS_UNARY_FUNCTIONS:
f = _func_slash_method_wrapper(getattr(pd, name))
f = _func_slash_method_wrapper(getattr(pd, name), name=name)
setattr(cls, name, cls._unary_op(f))

f = _func_slash_method_wrapper(duck_array_ops.around, name='round')
Expand Down