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/issues/4476#issuecomment-1420123001,https://api.github.com/repos/pydata/xarray/issues/4476,1420123001,IC_kwDOAMm_X85UpVt5,94073032,2023-02-07T02:55:26Z,2023-02-07T02:55:26Z,NONE,"Hi I would just like to add that having the argmax functionality would make possible to extract timestamp of maximum values, such as daily maximum values. Current resample in xarray doesn't allow that ","{""total_count"": 3, ""+1"": 3, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,712217045
https://github.com/pydata/xarray/issues/4476#issuecomment-788753958,https://api.github.com/repos/pydata/xarray/issues/4476,788753958,MDEyOklzc3VlQ29tbWVudDc4ODc1Mzk1OA==,3332539,2021-03-02T09:16:10Z,2021-03-02T09:18:39Z,NONE,"@zxdawn I am pretty sure it was possible in v0.15.1. But I would need to check that again.
edit: I just checked the old documentation from that version, and it confirms my memory:
http://xarray.pydata.org/en/accessor-documentation/generated/xarray.core.groupby.DataArrayGroupBy.argmax.html ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,712217045
https://github.com/pydata/xarray/issues/4476#issuecomment-788732242,https://api.github.com/repos/pydata/xarray/issues/4476,788732242,MDEyOklzc3VlQ29tbWVudDc4ODczMjI0Mg==,30388627,2021-03-02T08:42:51Z,2021-03-02T08:42:51Z,NONE,"@markusritschel I tested v0.17.0 and it doesn't work.
```
data = np.random.rand(4, 3)
locs = [""IA"", ""IL"", ""IN""]
times = pd.date_range(""2000-01-01"", periods=4)
foo = xr.DataArray(data, coords=[times, locs], dims=[""time"", ""space""])
foo.groupby('space').argmax('time')
```
Error: `AttributeError: 'DataArrayGroupBy' object has no attribute 'argmax'`","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,712217045
https://github.com/pydata/xarray/issues/4476#issuecomment-722034130,https://api.github.com/repos/pydata/xarray/issues/4476,722034130,MDEyOklzc3VlQ29tbWVudDcyMjAzNDEzMA==,3332539,2020-11-04T23:42:38Z,2020-11-04T23:42:38Z,NONE,This was definitely possible in the last versions (at least in v.0.15.1). Can we make this available again?,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,712217045