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-645572181,https://api.github.com/repos/pydata/xarray/issues/3975,645572181,MDEyOklzc3VlQ29tbWVudDY0NTU3MjE4MQ==,14808389,2020-06-17T19:20:02Z,2020-06-17T19:58:50Z,MEMBER,"yeah, I don't know how to only filter for `pint` warnings, I tried `pytest.mark.filterwarnings(""error:::pint[.*]"")` but that doesn't work Edit: `pytest.mark.filterwarnings(""error::pint.UnitStrippedWarning"")` works so I'm merging.","{""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-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-645533305,https://api.github.com/repos/pydata/xarray/issues/3975,645533305,MDEyOklzc3VlQ29tbWVudDY0NTUzMzMwNQ==,14808389,2020-06-17T18:05:20Z,2020-06-17T18:20:11Z,MEMBER,"I just found another issue: `pint` implements `prod` (but not yet `nanprod`) so the `prod` tests could be un-xfailed. However, we define a custom `nanprod` function that uses `where` to replace `nan` with `1`. This won't work on quantities since, unlike `nan` and `0`, a bare `1` cannot be put into quantities with a dimension (i.e. with a unit other than `dimensionless`). I don't really understand the purpose of `nanprod`'s `min_count` parameter (and `_maybe_null_out`) so I'm not sure how to fix that. For now, I think we can merge this PR on green and I'll add that issue to the list in #3594.","{""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 https://github.com/pydata/xarray/pull/3975#issuecomment-634626082,https://api.github.com/repos/pydata/xarray/issues/3975,634626082,MDEyOklzc3VlQ29tbWVudDYzNDYyNjA4Mg==,14808389,2020-05-27T12:27:29Z,2020-05-27T15:00:37Z,MEMBER,"it seems `assert_allclose` was one of the sources of `UnitStrippedWarning`s, but since there's a bug in `pint`'s `isclose` (fixed on `master`) the tests fail now. Edit: `pint` will be released in the next few days, so most of the failing CI should pass after that. Also, because it casted to `numpy`, there were a few bugs that were hidden.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,600641276