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/4087#issuecomment-632644348,https://api.github.com/repos/pydata/xarray/issues/4087,632644348,MDEyOklzc3VlQ29tbWVudDYzMjY0NDM0OA==,14808389,2020-05-22T11:29:40Z,2020-05-22T11:59:40Z,MEMBER,"thanks for the hint. Yes, that seems to have been fixed since the last release (#3951, I believe). It's going to be part of the next release, which should be soonish (see #4031).","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,623131373 https://github.com/pydata/xarray/issues/4087#issuecomment-632642328,https://api.github.com/repos/pydata/xarray/issues/4087,632642328,MDEyOklzc3VlQ29tbWVudDYzMjY0MjMyOA==,5821660,2020-05-22T11:24:52Z,2020-05-22T11:24:52Z,MEMBER,"@keewis I've the same output as the OP. Here is my xr.show_versions(): ``` INSTALLED VERSIONS ------------------ commit: None python: 3.8.2 | packaged by conda-forge | (default, Apr 16 2020, 18:04:51) [GCC 7.3.0] python-bits: 64 OS: Linux OS-release: 4.12.14-lp151.28.48-default machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: de_DE.UTF-8 LOCALE: de_DE.UTF-8 libhdf5: 1.10.5 libnetcdf: 4.7.4 xarray: 0.15.1 pandas: 1.0.3 numpy: 1.18.1 scipy: 1.4.1 netCDF4: 1.5.3 pydap: None h5netcdf: 0.8.0 h5py: 2.10.0 Nio: None zarr: None cftime: 1.1.1.2 nc_time_axis: None PseudoNetCDF: None rasterio: None cfgrib: None iris: None bottleneck: 1.3.2 dask: 2.14.0 distributed: 2.14.0 matplotlib: 3.2.1 cartopy: 0.17.0 seaborn: None numbagg: None setuptools: 46.1.3.post20200325 pip: 20.0.2 conda: None pytest: 5.4.1 IPython: 7.13.0 sphinx: None ```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,623131373 https://github.com/pydata/xarray/issues/4087#issuecomment-632639967,https://api.github.com/repos/pydata/xarray/issues/4087,632639967,MDEyOklzc3VlQ29tbWVudDYzMjYzOTk2Nw==,14808389,2020-05-22T11:19:10Z,2020-05-22T11:24:11Z,MEMBER,"that's strange. If I run it, I get ```python In [1]: import pandas as pd ...: import xarray as xr In [2]: data3 = pd.DataFrame([(1, 2, 1), (2, 2, 1)],columns=['x', 'B', 'A']) ...: data3 = data3.set_index(['x']) ...: data3.rename_axis('tag', axis=1, inplace=True) ...: data3 = data3.stack() ...: ...: data3 Out[2]: x tag 1 B 2 A 1 2 B 2 A 1 dtype: int64 In [3]: xr.DataArray.from_series(data3).sel(tag='B') Out[3]: array([2, 2]) Coordinates: * x (x) int64 1 2 tag