Skip to content

Commit 60b2c68

Browse files
committed
Merge pull request #796 from shoyer/0.7.2-docs
Doc cleanup for v0.7.2 release
2 parents 223666d + 9710b33 commit 60b2c68

File tree

5 files changed

+35
-11
lines changed

5 files changed

+35
-11
lines changed

doc/api.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ Computation
144144
:py:attr:`~Dataset.round`
145145
:py:attr:`~Dataset.real`
146146
:py:attr:`~Dataset.T`
147-
:py:attr:`~DataArray.dot`
148147

149148
**Grouped operations**:
150149
:py:attr:`~core.groupby.DatasetGroupBy.assign`
@@ -251,6 +250,7 @@ Computation
251250
DataArray.resample
252251
DataArray.get_axis_num
253252
DataArray.diff
253+
DataArray.dot
254254

255255
**Aggregation**:
256256
:py:attr:`~DataArray.all`

doc/computation.rst

+8
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ These operations automatically skip missing values, like in pandas:
9999
If desired, you can disable this behavior by invoking the aggregation method
100100
with ``skipna=False``.
101101

102+
.. _comput.rolling:
103+
102104
Rolling window operations
103105
=========================
104106

@@ -134,6 +136,12 @@ Aggregation and summary methods can be applied directly to the ``Rolling`` objec
134136
r.mean()
135137
r.reduce(np.std)
136138
139+
Note that rolling window aggregations are much faster (both asymptotically and
140+
because they avoid a loop in Python) when bottleneck_ is installed. Otherwise,
141+
we fall back to a slower, pure Python implementation.
142+
143+
.. _bottleneck: https://github.com/kwgoodman/bottleneck/
144+
137145
Finally, we can manually iterate through ``Rolling`` objects:
138146

139147
.. ipython:: python

doc/installing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ For accelerating xarray
2525
~~~~~~~~~~~~~~~~~~~~~~~
2626

2727
- `bottleneck <https://github.com/kwgoodman/bottleneck>`__: speeds up
28-
NaN-skipping aggregations by a large factor
28+
NaN-skipping and rolling window aggregations by a large factor
2929
- `cyordereddict <https://github.com/shoyer/cyordereddict>`__: speeds up most
3030
internal operations with xarray data structures
3131

doc/whats-new.rst

+21-8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. currentmodule:: xarray
2+
13
What's New
24
==========
35

@@ -13,16 +15,21 @@ What's New
1315
1416
.. _whats-new.0.7.2:
1517

16-
v0.7.2 (unreleased)
17-
-------------------
18+
v0.7.2 (13 March 2016)
19+
----------------------
20+
21+
This release includes two new, entirely backwards compatible features and
22+
several bug fixes.
1823

1924
Enhancements
2025
~~~~~~~~~~~~
21-
-xarray version of np.dot :py:meth:`~DataArray.dot`. Performs dot product of
22-
two DataArrays along their shared dims
26+
27+
- New DataArray method :py:meth:`DataArray.dot` for calculating the dot
28+
product of two DataArrays along shared dimensions. By
29+
`Dean Pospisil <https://github.com/deanpospisil>`_.
2330

2431
- Rolling window operations on DataArray objects are now supported via a new
25-
:py:meth:`xarray.DataArray.rolling` method.
32+
:py:meth:`DataArray.rolling` method. For example:
2633

2734
.. ipython::
2835
:verbatim:
@@ -52,15 +59,21 @@ two DataArrays along their shared dims
5259
* x (x) int64 0 1 2
5360
* y (y) int64 0 1 2 3 4
5461

62+
See :ref:`comput.rolling` for more details. By
63+
`Joe Hamman <https://github.com/jhamman>`_.
64+
5565
Bug fixes
5666
~~~~~~~~~
5767

5868
- Fixed an issue where plots using pcolormesh and Cartopy axes were being distorted
5969
by the inference of the axis interval breaks. This change chooses not to modify
6070
the coordinate variables when the axes have the attribute ``projection``, allowing
61-
Cartopy to handle the extent of pcolormesh plots (:issue:`781`).
62-
- 2D plots now better handle additional coordinates which are not linked to the
63-
dimensions of ``DataArray`` (:issue:`788`).
71+
Cartopy to handle the extent of pcolormesh plots (:issue:`781`). By
72+
`Joe Hamman <https://github.com/jhamman>`_.
73+
74+
- 2D plots now better handle additional coordinates which are not ``DataArray``
75+
dimensions (:issue:`788`). By `Fabien Maussion <https://github.com/fmaussion>`_.
76+
6477

6578
.. _whats-new.0.7.1:
6679

xarray/core/common.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,10 @@ def groupby(self, group, squeeze=True):
345345

346346
def rolling(self, min_periods=None, center=False, **windows):
347347
"""
348-
Moving window object.
348+
Rolling window object.
349+
350+
Rolling window aggregations are much faster when bottleneck is
351+
installed.
349352
350353
Parameters
351354
----------

0 commit comments

Comments
 (0)