html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue
https://github.com/pydata/xarray/pull/3975#issuecomment-645571138,https://api.github.com/repos/pydata/xarray/issues/3975,645571138,MDEyOklzc3VlQ29tbWVudDY0NTU3MTEzOA==,2448579,2020-06-17T19:17:58Z,2020-06-17T19:17:58Z,MEMBER,"Looks like an incompatibility with latest pandas
```
____________________ TestDataset.test_resample[int-coords] _____________________
self =
variant = 'coords', dtype =
return func(*all_args, **all_kwargs)
xarray/core/common.py:1123: in resample
grouper = pd.Grouper(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = , args = ()
kwargs = {'base': 0, 'closed': None, 'freq': '6m', 'label': None, ...}
TimeGrouper = , stacklevel = 2
def __new__(cls, *args, **kwargs):
if kwargs.get(""freq"") is not None:
from pandas.core.resample import TimeGrouper
# Deprecation warning of `base` and `loffset` since v1.1.0:
# we are raising the warning here to be able to set the `stacklevel`
# properly since we need to raise the `base` and `loffset` deprecation
# warning from three different cases:
# core/generic.py::NDFrame.resample
# core/groupby/groupby.py::GroupBy.resample
# core/groupby/grouper.py::Grouper
# raising these warnings from TimeGrouper directly would fail the test:
# tests/resample/test_deprecated.py::test_deprecating_on_loffset_and_base
# hacky way to set the stacklevel: if cls is TimeGrouper it means
# that the call comes from a pandas internal call of resample,
# otherwise it comes from pd.Grouper
stacklevel = 4 if cls is TimeGrouper else 2
if kwargs.get(""base"", None) is not None:
> warnings.warn(
""'base' in .resample() and in Grouper() is deprecated.\n""
""The new arguments that you should use are 'offset' or 'origin'.\n""
'\n>>> df.resample(freq=""3s"", base=2)\n'
""\nbecomes:\n""
'\n>>> df.resample(freq=""3s"", offset=""2s"")\n',
FutureWarning,
stacklevel=stacklevel,
)
E FutureWarning: 'base' in .resample() and in Grouper() is deprecated.
E The new arguments that you should use are 'offset' or 'origin'.
E
E >>> df.resample(freq=""3s"", base=2)
E
E becomes:
E
E >>> df.resample(freq=""3s"", offset=""2s"")
```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,600641276
https://github.com/pydata/xarray/pull/3975#issuecomment-644254403,https://api.github.com/repos/pydata/xarray/issues/3975,644254403,MDEyOklzc3VlQ29tbWVudDY0NDI1NDQwMw==,2448579,2020-06-15T17:00:39Z,2020-06-15T17:00:39Z,MEMBER,"Thanks for working on this @keewis . Since there are no changes outside `test_units.py`, I think you should merge whenever you think this is ready.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,600641276