You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add days_in_year and decimal_year to dt accessor (#9105)
* Add days_in_year and decimal_year to dt accessor
* Upd whats new - add gregorian calendar - rename to decimal_year
* Add to api.rst and pr number
* Add requires cftime decorators where needed
* Rewrite functions using suggestions from review
* cleaner custom date field - docstrings - remove bad merge
* add new fields to dask access test
* Revert to rollback method
* Revert "Revert to rollback method"
This reverts commit 3f429c9.
* explicit float cast?
* Revert back to rollback method
* Fix dask compatibility issues
* Approach that passes tests under NumPy 1.26.4
* Adapt decimal_year test to be more comprehensive
* Use proper sphinx roles for cross-referencing.
---------
Co-authored-by: Spencer Clark <[email protected]>
Copy file name to clipboardExpand all lines: doc/whats-new.rst
+7
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,13 @@ v2024.07.1 (unreleased)
22
22
23
23
New Features
24
24
~~~~~~~~~~~~
25
+
26
+
- Add :py:attr:`~core.accessor_dt.DatetimeAccessor.days_in_year` and :py:attr:`~core.accessor_dt.DatetimeAccessor.decimal_year` to the Datetime accessor on DataArrays. (:pull:`9105`).
27
+
By `Pascal Bourgault <https://github.com/aulemahal>`_.
28
+
29
+
Performance
30
+
~~~~~~~~~~~
31
+
25
32
- Make chunk manager an option in ``set_options`` (:pull:`9362`).
26
33
By `Tom White <https://github.com/tomwhite>`_.
27
34
- Support for :ref:`grouping by multiple variables <groupby.multiple>`.
0 commit comments