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/2511#issuecomment-932582053,https://api.github.com/repos/pydata/xarray/issues/2511,932582053,IC_kwDOAMm_X843lhKl,38116316,2021-10-01T21:18:53Z,2021-10-01T21:20:49Z,NONE,"Hello! First off thank you for all the hard work on xarray! Use it every day and love it :) I am also having issues indexing with dask arrays and get the following error. ``` Traceback (most recent call last): File ""~/phd-comps/scripts/sfire-pbl.py"", line 64, in PBLH = height.isel(gradT2.argmax(dim=['interp_level'])) File ""~/miniconda3/envs/cr/lib/python3.7/site-packages/xarray/core/dataarray.py"", line 1184, in isel indexers, drop=drop, missing_dims=missing_dims File ""~/miniconda3/envs/cr/lib/python3.7/site-packages/xarray/core/dataset.py"", line 2389, in _isel_fancy new_var = var.isel(indexers=var_indexers) File ""~/miniconda3/envs/cr/lib/python3.7/site-packages/xarray/core/variable.py"", line 1156, in isel return self[key] File ""~/miniconda3/envs/cr/lib/python3.7/site-packages/xarray/core/variable.py"", line 776, in __getitem__ dims, indexer, new_order = self._broadcast_indexes(key) File ""~/miniconda3/envs/cr/lib/python3.7/site-packages/xarray/core/variable.py"", line 632, in _broadcast_indexes return self._broadcast_indexes_vectorized(key) File ""~/miniconda3/envs/cr/lib/python3.7/site-packages/xarray/core/variable.py"", line 761, in _broadcast_indexes_vectorized return out_dims, VectorizedIndexer(tuple(out_key)), new_order File ""~/miniconda3/envs/cr/lib/python3.7/site-packages/xarray/core/indexing.py"", line 323, in __init__ f""unexpected indexer type for {type(self).__name__}: {k!r}"" TypeError: unexpected indexer type for VectorizedIndexer: dask.array ``` ``` dask 2021.9.1 pyhd8ed1ab_0 conda-forge xarray 0.19.0 pyhd8ed1ab_0 conda-forge ``` In order to get it to work, I first need to manually call compute to load to NumPy array before using argmax with isel. Not sure what info I can provide to help solve the issue please let me know and ill send whatever I can. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,374025325