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/7048#issuecomment-1257220735,https://api.github.com/repos/pydata/xarray/issues/7048,1257220735,IC_kwDOAMm_X85K76p_,43316012,2022-09-25T15:42:49Z,2022-09-25T15:42:49Z,COLLABORATOR,"> ```python > import numpy as np > import pandas as pd > import xarray as xr > > da = xr.DataArray( > np.array([1, 2, 3, 1, 2, np.nan]), > dims=""time"", > coords=dict( > time=(""time"", pd.date_range(""01-01-2001"", freq=""M"", periods=6)), > labels=(""time"", np.array([""a"", ""b"", ""c"", ""c"", ""b"", ""a""])), > ), > ) > da.groupby(""labels"").count() > > da = xr.DataArray( > np.array([1, 2, 3, 1, 2, np.nan]), > dims=""time"", > coords=dict( > time=(""time"", pd.date_range(""01-01-2001"", freq=""M"", periods=6)), > labels=(""time"", np.array([""a"", ""b"", ""c"", ""c"", ""b"", ""a""])), > ), > ) > da.groupby(""labels"").count() > ``` For me this works in a python terminal, python script and jupyter notebook (I don't use spyder but vscode).","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1376479521 https://github.com/pydata/xarray/pull/7048#issuecomment-1250258063,https://api.github.com/repos/pydata/xarray/issues/7048,1250258063,IC_kwDOAMm_X85KhWyP,43316012,2022-09-18T12:17:32Z,2022-09-18T12:17:32Z,COLLABORATOR,"> Is it just me that this example crashes the second time I run it? Could you specify what you mean by ""second time I run it""? Executing the groupby twice?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1376479521 https://github.com/pydata/xarray/pull/7048#issuecomment-1250080138,https://api.github.com/repos/pydata/xarray/issues/7048,1250080138,IC_kwDOAMm_X85KgrWK,43316012,2022-09-17T14:20:16Z,2022-09-17T14:20:16Z,COLLABORATOR,"Turns out that the buildin `ellipsis` works now with mypy. Did not test it for older python versions, may require some special casing (Lets see if the tests pass)?","{""total_count"": 1, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 1, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1376479521 https://github.com/pydata/xarray/pull/7048#issuecomment-1250054633,https://api.github.com/repos/pydata/xarray/issues/7048,1250054633,IC_kwDOAMm_X85KglHp,43316012,2022-09-17T11:31:01Z,2022-09-17T11:31:01Z,COLLABORATOR,"Could any dev that uses linux rerun the generate_reductions and `pytest --doctest-modules xarray/core/_reductions.py --accept`? On windows I still get different results (maybe that should be fixed at some point...)","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1376479521