@@ -20,90 +20,100 @@ What's New
20
20
v2024.02.0 (unreleased)
21
21
-----------------------
22
22
23
+ This release brings size information to the text ``repr ``, changes to the accepted frequency
24
+ strings, and various bug fixes.
25
+
26
+ Thanks to our 12 contributors:
27
+
28
+ Anderson Banihirwe, Deepak Cherian, Eivind Jahren, Etienne Schalk, Justus Magin, Marco Wolsza,
29
+ Mathias Hauser, Matt Savoie, Maximilian Roos, Rambaud Pierrick, Tom Nicholas
30
+
23
31
New Features
24
32
~~~~~~~~~~~~
25
33
26
- - Added a simple `nbytes ` representation in DataArrays and Dataset `repr `.
34
+ - Added a simple `` nbytes `` representation in DataArrays and Dataset `` repr ` `.
27
35
(:issue: `8690 `, :pull: `8702 `).
28
36
By `Etienne Schalk <https://github.com/etienneschalk >`_.
29
- - Allow negative frequency strings (e.g. ``"-1YE" ``). These strings are for example used
30
- in :py:func: `date_range `, and :py:func: `cftime_range ` (:pull: `8651 `).
37
+ - Allow negative frequency strings (e.g. ``"-1YE" ``). These strings are for example used in
38
+ :py:func: `date_range `, and :py:func: `cftime_range ` (:pull: `8651 `).
31
39
By `Mathias Hauser <https://github.com/mathause >`_.
32
- - Add :py:meth: `NamedArray.expand_dims `, :py:meth: `NamedArray.permute_dims ` and :py:meth: `NamedArray.broadcast_to `
33
- (:pull: `8380 `) By `Anderson Banihirwe <https://github.com/andersy005 >`_.
34
- - Xarray now defers to flox's `heuristics <https://flox.readthedocs.io/en/latest/implementation.html#heuristics >`_
35
- to set default `method ` for groupby problems. This only applies to ``flox>=0.9 ``.
40
+ - Add :py:meth: `NamedArray.expand_dims `, :py:meth: `NamedArray.permute_dims ` and
41
+ :py:meth: `NamedArray.broadcast_to ` (:pull: `8380 `)
42
+ By `Anderson Banihirwe <https://github.com/andersy005 >`_.
43
+ - Xarray now defers to `flox's heuristics <https://flox.readthedocs.io/en/latest/implementation.html#heuristics >`_
44
+ to set the default `method ` for groupby problems. This only applies to ``flox>=0.9 ``.
36
45
By `Deepak Cherian <https://github.com/dcherian >`_.
37
46
- All `quantile ` methods (e.g. :py:meth: `DataArray.quantile `) now use `numbagg `
38
47
for the calculation of nanquantiles (i.e., `skipna=True `) if it is installed.
39
48
This is currently limited to the linear interpolation method (`method='linear' `).
40
- (:issue: `7377 `, :pull: `8684 `) By `Marco Wolsza <https://github.com/maawoo >`_.
49
+ (:issue: `7377 `, :pull: `8684 `)
50
+ By `Marco Wolsza <https://github.com/maawoo >`_.
41
51
42
52
Breaking changes
43
53
~~~~~~~~~~~~~~~~
44
54
45
55
- :py:func: `infer_freq ` always returns the frequency strings as defined in pandas 2.2
46
- (:issue: `8612 `, :pull: `8627 `). By `Mathias Hauser <https://github.com/mathause >`_.
56
+ (:issue: `8612 `, :pull: `8627 `).
57
+ By `Mathias Hauser <https://github.com/mathause >`_.
47
58
48
59
Deprecations
49
60
~~~~~~~~~~~~
50
- - The `dt.weekday_name ` parameter wasn't functional on modern pandas versions and has been removed. (:issue: `8610 `, :pull: `8664 `)
61
+ - The `dt.weekday_name ` parameter wasn't functional on modern pandas versions and has been
62
+ removed. (:issue: `8610 `, :pull: `8664 `)
51
63
By `Sam Coleman <https://github.com/nameloCmaS >`_.
52
64
53
65
54
66
Bug fixes
55
67
~~~~~~~~~
56
68
57
- - Fixed a regression that prevented multi-index level coordinates being
58
- serialized after resetting or dropping the multi-index (:issue: `8628 `, :pull: `8672 `).
69
+ - Fixed a regression that prevented multi-index level coordinates being serialized after resetting
70
+ or dropping the multi-index (:issue: `8628 `, :pull: `8672 `).
59
71
By `Benoit Bovy <https://github.com/benbovy >`_.
60
72
- Fix bug with broadcasting when wrapping array API-compliant classes. (:issue: `8665 `, :pull: `8669 `)
61
73
By `Tom Nicholas <https://github.com/TomNicholas >`_.
62
- - Ensure :py:meth: `DataArray.unstack ` works when wrapping array API-compliant classes. (:issue: `8666 `, :pull: `8668 `)
74
+ - Ensure :py:meth: `DataArray.unstack ` works when wrapping array API-compliant
75
+ classes. (:issue: `8666 `, :pull: `8668 `)
63
76
By `Tom Nicholas <https://github.com/TomNicholas >`_.
64
77
- Fix negative slicing of Zarr arrays without dask installed. (:issue: `8252 `)
65
78
By `Deepak Cherian <https://github.com/dcherian >`_.
66
- - Preserve chunks when writing time-like variables to zarr by enabling lazy CF
67
- encoding of time-like variables (:issue: `7132 `, :issue: `8230 `, :issue: `8432 `,
68
- :pull: `8575 `). By `Spencer Clark <https://github.com/spencerkclark >`_ and
69
- `Mattia Almansi <https://github.com/malmans2 >`_.
70
- - Preserve chunks when writing time-like variables to zarr by enabling their
71
- lazy encoding (:issue: `7132 `, :issue: `8230 `, :issue: `8432 `, :pull: `8253 `,
72
- :pull: `8575 `; see also discussion in :pull: `8253 `). By `Spencer Clark
73
- <https://github.com/spencerkclark> `_ and `Mattia Almansi
74
- <https://github.com/malmans2> `_.
75
- - Raise an informative error if dtype encoding of time-like variables would
76
- lead to integer overflow or unsafe conversion from floating point to integer
77
- values (:issue: `8542 `, :pull: `8575 `). By `Spencer Clark
78
- <https://github.com/spencerkclark> `_.
79
- - Raise an error when unstacking a MultiIndex that has duplicates as this would lead
80
- to silent data loss (:issue: `7104 `, :pull: `8737 `). By `Mathias Hauser <https://github.com/mathause >`_.
79
+ - Preserve chunks when writing time-like variables to zarr by enabling lazy CF encoding of time-like
80
+ variables (:issue: `7132 `, :issue: `8230 `, :issue: `8432 `, :pull: `8575 `).
81
+ By `Spencer Clark <https://github.com/spencerkclark >`_ and `Mattia Almansi <https://github.com/malmans2 >`_.
82
+ - Preserve chunks when writing time-like variables to zarr by enabling their lazy encoding
83
+ (:issue: `7132 `, :issue: `8230 `, :issue: `8432 `, :pull: `8253 `, :pull: `8575 `; see also discussion in
84
+ :pull: `8253 `).
85
+ By `Spencer Clark <https://github.com/spencerkclark >`_ and `Mattia Almansi <https://github.com/malmans2 >`_.
86
+ - Raise an informative error if dtype encoding of time-like variables would lead to integer overflow
87
+ or unsafe conversion from floating point to integer values (:issue: `8542 `, :pull: `8575 `).
88
+ By `Spencer Clark <https://github.com/spencerkclark >`_.
89
+ - Raise an error when unstacking a MultiIndex that has duplicates as this would lead to silent data
90
+ loss (:issue: `7104 `, :pull: `8737 `).
91
+ By `Mathias Hauser <https://github.com/mathause >`_.
81
92
82
93
Documentation
83
94
~~~~~~~~~~~~~
84
- - Fix `variables ` arg typo in `Dataset.sortby() ` docstring
85
- (:issue: `8663 `, :pull: `8670 `)
95
+ - Fix `variables ` arg typo in `Dataset.sortby() ` docstring (:issue: `8663 `, :pull: `8670 `)
86
96
By `Tom Vo <https://github.com/tomvothecoder >`_.
97
+ - Fixed documentation where the use of the depreciated pandas frequency string prevented the
98
+ documentation from being built. (:pull: `8638 `)
99
+ By `Sam Coleman <https://github.com/nameloCmaS >`_.
87
100
88
101
Internal Changes
89
102
~~~~~~~~~~~~~~~~
90
103
91
- - ``DataArray.dt `` now raises an ``AttributeError `` rather than a ``TypeError ``
92
- when the data isn't datetime-like. (:issue: `8718 `, :pull: `8724 `)
104
+ - ``DataArray.dt `` now raises an ``AttributeError `` rather than a ``TypeError `` when the data isn't
105
+ datetime-like. (:issue: `8718 `, :pull: `8724 `)
93
106
By `Maximilian Roos <https://github.com/max-sixty >`_.
94
-
95
- - Move `` parallelcompat `` and `` chunk managers `` modules from `` xarray/core `` to ``xarray/namedarray ``. (:pull: `8319 `)
107
+ - Move `` parallelcompat `` and `` chunk managers `` modules from `` xarray/core `` to
108
+ ``xarray/namedarray ``. (:pull: `8319 `)
96
109
By `Tom Nicholas <https://github.com/TomNicholas >`_ and `Anderson Banihirwe <https://github.com/andersy005 >`_.
97
-
98
- - Imports ``datatree `` repository and history into internal
99
- location. (:pull: `8688 `) By `Matt Savoie <https://github.com/flamingbear >`_
100
- and `Justus Magin <https://github.com/keewis >`_.
101
-
102
- - Adds :py:func: `open_datatree ` into ``xarray/backends `` (:pull: `8697 `) By `Matt
103
- Savoie <https://github.com/flamingbear> `_.
104
-
105
- - Refactor :py:meth: `xarray.core.indexing.DaskIndexingAdapter.__getitem__ ` to remove an unnecessary rewrite of the indexer key
106
- (:issue: `8377 `, :pull: `8758 `) By `Anderson Banihirwe <https://github.com/andersy005> `
110
+ - Imports ``datatree `` repository and history into internal location. (:pull: `8688 `)
111
+ By `Matt Savoie <https://github.com/flamingbear >`_ and `Justus Magin <https://github.com/keewis >`_.
112
+ - Adds :py:func: `open_datatree ` into ``xarray/backends `` (:pull: `8697 `)
113
+ By `Matt Savoie <https://github.com/flamingbear >`_.
114
+ - Refactor :py:meth: `xarray.core.indexing.DaskIndexingAdapter.__getitem__ ` to remove an unnecessary
115
+ rewrite of the indexer key (:issue: `8377 `, :pull: `8758 `)
116
+ By `Anderson Banihirwe <https://github.com/andersy005 >`_.
107
117
108
118
.. _whats-new.2024.01.1 :
109
119
@@ -134,9 +144,6 @@ Documentation
134
144
135
145
- Pin ``sphinx-book-theme `` to ``1.0.1 `` to fix a rendering issue with the sidebar in the docs. (:issue: `8619 `, :pull: `8632 `)
136
146
By `Tom Nicholas <https://github.com/TomNicholas >`_.
137
- - Fixed documentation where the use of the depreciated pandas frequency string
138
- prevented the documentation from being built. (:pull: `8638 `)
139
- By `Sam Coleman <https://github.com/nameloCmaS >`_.
140
147
141
148
.. _whats-new.2024.01.0 :
142
149
0 commit comments