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
Preserve base and loffset arguments in resample (#7444)
* [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]>
0 commit comments