Skip to content

Update resample time offset FutureWarning and docs#8479

Merged
dcherian merged 8 commits intopydata:mainfrom
douglatornell:douglatornell-resample-time-offset-docs
Nov 29, 2023
Merged

Update resample time offset FutureWarning and docs#8479
dcherian merged 8 commits intopydata:mainfrom
douglatornell:douglatornell-resample-time-offset-docs

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
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?

@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
@dcherian dcherian enabled auto-merge (squash) November 29, 2023 01:09
@dcherian dcherian merged commit 8ee12f6 into pydata:main Nov 29, 2023
@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