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/1469#issuecomment-609103467,https://api.github.com/repos/pydata/xarray/issues/1469,609103467,MDEyOklzc3VlQ29tbWVudDYwOTEwMzQ2Nw==,6815844,2020-04-04T23:24:20Z,2020-04-04T23:24:20Z,MEMBER,"Hi @johnomotani .
Probably I have no time to finish this up and this is already too old.
It would be nice if someone can update this PR.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,239918314
https://github.com/pydata/xarray/pull/1469#issuecomment-313061867,https://api.github.com/repos/pydata/xarray/issues/1469,313061867,MDEyOklzc3VlQ29tbWVudDMxMzA2MTg2Nw==,6815844,2017-07-05T10:13:18Z,2017-07-05T10:13:18Z,MEMBER,"@shoyer
Sorry. My example was still not good (I modified the previous example slightly).
I think my current implementation does not work even for (the future version of) `.sel`, because the resultant `xr.Dataset` has the index for 'y' and labels for 'x'.
As you suggested, it looks more `xarray`-like if it returns coordinates for both 'x' and 'y',
```python
Dimensions: (x: 3)
Coordinates:
* x (x) `indexes_min`.
Also I added `idxmin` that works as similar to pandas's `idxmin`.
The APIs are
```python
def indexes_min(self, dims=None, skipna=True):
```
and
```python
def idxmin(self, dim=None, skipna=True, keep_dims=False):
```
(I found `keep_dims` for `indexes_min` brings another confusion and omit from them).
+ `isel_points`'s issue
Currently, `indexes_min` works as
```python
In [1]: import xarray as xr
...: da = xr.DataArray([[1, 2], [51, 40], [5, 6]],
...: [('x', ['c', 'b', 'a']), ('y', [1.4, 4.3])])
...: da
...:
Out[1]:
array([[ 1, 2],
[51, 40],
[ 5, 6]])
Coordinates:
* x (x)
Dimensions: (x: 3)
Coordinates:
* x (x)
Dimensions: (points: 3)
Data variables:
x (points) int64 0 1 2
y (points) int64 0 1 0
```
This behavior is more intuitive?
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,239918314