Skip to content

Commit d7dc294

Browse files
committed
sphinx
1 parent e29bae9 commit d7dc294

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

doc/api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ Computation
324324
DataArray.quantile
325325
DataArray.differentiate
326326
DataArray.integrate
327+
DataArray.str
327328

328329
**Aggregation**:
329330
:py:attr:`~DataArray.all`

doc/whats-new.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ Enhancements
4242
helpful for avoiding file-lock errors when trying to write to files opened
4343
using ``open_dataset()`` or ``open_dataarray()``. (:issue:`2887`)
4444
By `Dan Nowacki <https://github.com/dnowacki-usgs>`_.
45+
- Add ``.str`` accessor to DataArrays for string related manipulations.
46+
By `0x0L <https://github.com/0x0L>`_.
4547

4648
Bug fixes
4749
~~~~~~~~~

xarray/core/accessors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def round(self, freq):
263263

264264

265265
def _is_str_like(x):
266-
return isinstance(repl, str) or isinstance(repl, bytes)
266+
return isinstance(x, str) or isinstance(x, bytes)
267267

268268

269269
class StringAccessor:

0 commit comments

Comments
 (0)