Skip to content

Commit

Permalink
sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0L committed May 25, 2019
1 parent e29bae9 commit d7dc294
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions doc/api.rst
Expand Up @@ -324,6 +324,7 @@ Computation
DataArray.quantile
DataArray.differentiate
DataArray.integrate
DataArray.str

**Aggregation**:
:py:attr:`~DataArray.all`
Expand Down
2 changes: 2 additions & 0 deletions doc/whats-new.rst
Expand Up @@ -42,6 +42,8 @@ Enhancements
helpful for avoiding file-lock errors when trying to write to files opened
using ``open_dataset()`` or ``open_dataarray()``. (:issue:`2887`)
By `Dan Nowacki <https://github.com/dnowacki-usgs>`_.
- Add ``.str`` accessor to DataArrays for string related manipulations.
By `0x0L <https://github.com/0x0L>`_.

Bug fixes
~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion xarray/core/accessors.py
Expand Up @@ -263,7 +263,7 @@ def round(self, freq):


def _is_str_like(x):
return isinstance(repl, str) or isinstance(repl, bytes)
return isinstance(x, str) or isinstance(x, bytes)


class StringAccessor:
Expand Down

0 comments on commit d7dc294

Please sign in to comment.