-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add inclusive
argument to cftime_range
and date_range
and deprecate closed
argument
#7373
Conversation
9cd335d
to
3f86d33
Compare
7a291c6
to
a366269
Compare
RTD failure is still real :( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks LGTM!
Co-authored-by: Justus Magin <[email protected]>
9486747
to
1f0dc88
Compare
After debugging locally it looks like the remaining doc build failure was the result of a line I inadvertently deleted further down in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh and I guess it's February now, though, so I'm assuming these versions should change?
Co-authored-by: Spencer Clark <[email protected]>
Co-authored-by: Spencer Clark <[email protected]>
Thanks @spencerkclark . I didn't realize we had the pandas copyright notice in |
* upstream/main: (291 commits) Update error message when saving multiindex (pydata#7475) DOC: cross ref the groupby tutorial (pydata#7555) [pre-commit.ci] pre-commit autoupdate (pydata#7543) supress namespace_package deprecation warning (doctests) (pydata#7548) [skip-ci] Add PDF of Xarray logo (pydata#7530) Support complex arrays in xr.corr (pydata#7392) clarification for thresh arg of dataset.dropna() (pydata#7481) [pre-commit.ci] pre-commit autoupdate (pydata#7524) Require to explicitly defining optional dimensions such as hue and markersize (pydata#7277) Use plt.rc_context for default styles (pydata#7318) Update HOW_TO_RELEASE.md (pydata#7512) Update whats-new for dev (pydata#7511) Fix whats-new for 2023.02.0 (pydata#7506) Update apply_ufunc output_sizes error message (pydata#7509) Zarr: drop "source" and "original_shape" from encoding (pydata#7500) [pre-commit.ci] pre-commit autoupdate (pydata#7507) Whats-new for 2023.03.0 Add `inclusive` argument to `cftime_range` and `date_range` and deprecate `closed` argument (pydata#7373) Make text match code example (pydata#7499) Remove Dask single-threaded setting in tests (pydata#7489) ...
Following pandas, this PR adds an
inclusive
argument toxarray.cftime_range
andxarray.date_range
and deprecates theclosed
argument. Pandas will be removing theclosed
argument soon in theirdate_range
implementation, but we will continue supporting it to allow for our own deprecation cycle.I think we may also need to update our minimum pandas version to 1.4 for this, since earlier versions of pandas do not support the
inclusive
argument.whats-new.rst