forked from pydata/xarray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [test-upstream] Preserve base and loffset arguments in resample While pandas is getting set to remove these, we have not had a chance to emit a deprecation warning yet for them in xarray. This should hopefully give users some extra time to adapt. * Emit warning when base is not None Co-authored-by: Deepak Cherian <[email protected]> * Modify warnings to refer loffset and base as parameters; add tests * Add type validation for loffset arguments * Add typing and support for pd.Timedelta as an loffset * pd.Timedelta is a subclass of datetime.timedelta * [test-upstream] Remove unneeded skipif * Fix failing tests * [test-upstream] Add return type to tests * [test-upstream] Update documentation * [test-upstream] Fix mypy errors in tests * Move _convert_base_to_offset to pdcompat and add a few more tests * Use offset instead of base in documentation --------- Co-authored-by: Deepak Cherian <[email protected]>
- Loading branch information
1 parent
821dc24
commit 6d771fc
Showing
8 changed files
with
239 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.