Skip to content
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

Update resample time offset FutureWarning and docs #8479

Merged

Conversation

douglatornell
Copy link
Contributor

@douglatornell douglatornell commented Nov 23, 2023

Improve the text of the FutureWarning re: deprecation of the loffset parameter in the DataWithCoords._resample().
Add deprecation notices about loffset to the Dataset.resample() and DataArray.resample()` docstrings.
Add illustration of updating the time coordinate values of a resampled dataset using time offset arithmetic to the Time series data - Resampling and grouped operations section of the user guide.

Illustrate updating the time coordinate values of a resampled dataset
using time offset arithmetic. This is the recommended technique to
replace the use of the deprecated `loffset` parameter in `resample()`

re: issue pydata#7596 and discussion
pydata#8175
xarray/core/common.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@max-sixty max-sixty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks @douglatornell

@douglatornell
Copy link
Contributor Author

Thanks for the lightning fast review @max-sixty !

@douglatornell
Copy link
Contributor Author

@dcherian Does my addition to the bottom of time-series.rst accomplish what you had in mind in #7596?

xarray/core/common.py Outdated Show resolved Hide resolved
@max-sixty
Copy link
Collaborator

I'll wait for @dcherian to have a look before hitting the big button

@douglatornell douglatornell marked this pull request as ready for review November 23, 2023 23:51
xarray/core/common.py Outdated Show resolved Hide resolved
@dcherian dcherian enabled auto-merge (squash) November 29, 2023 01:09
@dcherian dcherian merged commit 8ee12f6 into pydata:main Nov 29, 2023
26 of 27 checks passed
@douglatornell douglatornell deleted the douglatornell-resample-time-offset-docs branch November 29, 2023 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

illustrate time offset arithmetic
3 participants