@@ -14,12 +14,20 @@ What's New
14
14
15
15
np.random.seed(123456 )
16
16
17
+ .. _whats-new.2024.01.0 :
17
18
19
+ v2024.01.0 (17 Jan, 2024)
20
+ -------------------------
18
21
19
- .. _whats-new.2023.12.1 :
22
+ This release brings support for weights in correlation and covariance functions,
23
+ a new `DataArray.cumulative ` aggregation, improvements to `xr.map_blocks `,
24
+ an update to our minimum dependencies, and various bugfixes.
20
25
21
- v2023.12.1 (unreleased)
22
- -----------------------
26
+ Thanks to our 17 contributors to this release:
27
+
28
+ Abel Aoun, Deepak Cherian, Illviljan, Johan Mathe, Justus Magin, Kai Mühlbauer,
29
+ Llorenç Lledó, Mark Harfouche, Markel, Mathias Hauser, Maximilian Roos, Michael Niklas,
30
+ Niclas Rieger, Sébastien Celles, Tom Nicholas, Trinh Quoc Anh, and crusaderky.
23
31
24
32
New Features
25
33
~~~~~~~~~~~~
@@ -28,8 +36,18 @@ New Features
28
36
By `Llorenç Lledó <https://github.com/lluritu >`_.
29
37
- Accept the compression arguments new in netCDF 1.6.0 in the netCDF4 backend.
30
38
See `netCDF4 documentation <https://unidata.github.io/netcdf4-python/#efficient-compression-of-netcdf-variables >`_ for details.
31
- By `Markel García-Díez <https://github.com/markelg >`_. (:issue: `6929 `, :pull: `7551 `) Note that some
32
- new compression filters needs plugins to be installed which may not be available in all netCDF distributions.
39
+ Note that some new compression filters needs plugins to be installed which may not be available in all netCDF distributions.
40
+ By `Markel García-Díez <https://github.com/markelg >`_. (:issue: `6929 `, :pull: `7551 `)
41
+ - Add :py:meth: `DataArray.cumulative ` & :py:meth: `Dataset.cumulative ` to compute
42
+ cumulative aggregations, such as ``sum ``, along a dimension — for example
43
+ ``da.cumulative('time').sum() ``. This is similar to pandas' ``.expanding ``,
44
+ and mostly equivalent to ``.cumsum `` methods, or to
45
+ :py:meth: `DataArray.rolling ` with a window length equal to the dimension size.
46
+ By `Maximilian Roos <https://github.com/max-sixty >`_. (:pull: `8512 `)
47
+ - Decode/Encode netCDF4 enums and store the enum definition in dataarrays' dtype metadata.
48
+ If multiple variables share the same enum in netCDF4, each dataarray will have its own
49
+ enum definition in their respective dtype metadata.
50
+ By `Abel Aoun <https://github.com/bzah >`_. (:issue: `8144 `, :pull: `8147 `)
33
51
34
52
Breaking changes
35
53
~~~~~~~~~~~~~~~~
@@ -54,9 +72,9 @@ Breaking changes
54
72
zarr 2.12 2.13
55
73
===================== ========= ========
56
74
57
-
58
75
Deprecations
59
76
~~~~~~~~~~~~
77
+
60
78
- The `squeeze ` kwarg to GroupBy is now deprecated. (:issue: `2157 `, :pull: `8507 `)
61
79
By `Deepak Cherian <https://github.com/dcherian >`_.
62
80
@@ -72,18 +90,19 @@ Bug fixes
72
90
- Add tests and fixes for empty :py:class: `CFTimeIndex `, including broken html repr (:issue: `7298 `, :pull: `8600 `).
73
91
By `Mathias Hauser <https://github.com/mathause >`_.
74
92
75
- Documentation
76
- ~~~~~~~~~~~~~
77
-
78
-
79
93
Internal Changes
80
94
~~~~~~~~~~~~~~~~
95
+
81
96
- The implementation of :py:func: `map_blocks ` has changed to minimize graph size and duplication of data.
82
97
This should be a strict improvement even though the graphs are not always embarassingly parallel any more.
83
98
Please open an issue if you spot a regression. (:pull: `8412 `, :issue: `8409 `).
84
99
By `Deepak Cherian <https://github.com/dcherian >`_.
85
100
- Remove null values before plotting. (:pull: `8535 `).
86
101
By `Jimmy Westling <https://github.com/illviljan >`_.
102
+ - Redirect cumulative reduction functions internally through the :py:class: `ChunkManagerEntryPoint `,
103
+ potentially allowing :py:meth: `~xarray.DataArray.ffill ` and :py:meth: `~xarray.DataArray.bfill ` to
104
+ use non-dask chunked array types.
105
+ (:pull: `8019 `) By `Tom Nicholas <https://github.com/TomNicholas >`_.
87
106
88
107
.. _whats-new.2023.12.0 :
89
108
@@ -111,13 +130,6 @@ New Features
111
130
example a 1D array — it's about the same speed as bottleneck, and 2-5x faster
112
131
than pandas' default functions. (:pull: `8493 `). numbagg is an optional
113
132
dependency, so requires installing separately.
114
- - Add :py:meth: `DataArray.cumulative ` & :py:meth: `Dataset.cumulative ` to compute
115
- cumulative aggregations, such as ``sum ``, along a dimension — for example
116
- ``da.cumulative('time').sum() ``. This is similar to pandas' ``.expanding ``,
117
- and mostly equivalent to ``.cumsum `` methods, or to
118
- :py:meth: `DataArray.rolling ` with a window length equal to the dimension size.
119
- (:pull: `8512 `).
120
- By `Maximilian Roos <https://github.com/max-sixty >`_.
121
133
- Use a concise format when plotting datetime arrays. (:pull: `8449 `).
122
134
By `Jimmy Westling <https://github.com/illviljan >`_.
123
135
- Avoid overwriting unchanged existing coordinate variables when appending with :py:meth: `Dataset.to_zarr ` by setting ``mode='a-' ``.
@@ -224,10 +236,6 @@ New Features
224
236
225
237
- Use `opt_einsum <https://optimized-einsum.readthedocs.io/en/stable/ >`_ for :py:func: `xarray.dot ` by default if installed.
226
238
By `Deepak Cherian <https://github.com/dcherian >`_. (:issue: `7764 `, :pull: `8373 `).
227
- - Decode/Encode netCDF4 enums and store the enum definition in dataarrays' dtype metadata.
228
- If multiple variables share the same enum in netCDF4, each dataarray will have its own
229
- enum definition in their respective dtype metadata.
230
- By `Abel Aoun <https://github.com/bzah>_`(:issue: `8144 `, :pull: `8147 `)
231
239
- Add ``DataArray.dt.total_seconds() `` method to match the Pandas API. (:pull: `8435 `).
232
240
By `Ben Mares <https://github.com/maresb >`_.
233
241
- Allow passing ``region="auto" `` in :py:meth: `Dataset.to_zarr ` to automatically infer the
@@ -628,10 +636,6 @@ Internal Changes
628
636
629
637
- :py:func: `as_variable ` now consistently includes the variable name in any exceptions
630
638
raised. (:pull: `7995 `). By `Peter Hill <https://github.com/ZedThree >`_
631
- - Redirect cumulative reduction functions internally through the :py:class: `ChunkManagerEntryPoint `,
632
- potentially allowing :py:meth: `~xarray.DataArray.ffill ` and :py:meth: `~xarray.DataArray.bfill ` to
633
- use non-dask chunked array types.
634
- (:pull: `8019 `) By `Tom Nicholas <https://github.com/TomNicholas >`_.
635
639
- :py:func: `encode_dataset_coordinates ` now sorts coordinates automatically assigned to
636
640
`coordinates ` attributes during serialization (:issue: `8026 `, :pull: `8034 `).
637
641
`By Ian Carroll <https://github.com/itcarroll >`_.
0 commit comments