We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
da = xr.DataArray([0, 1], dims=['x'], coords={'x': [0, 1], 'y': 'a'}) db = xr.DataArray([2, 3], dims=['x'], coords={'x': [0, 1], 'y': 'b'}) data = xr.concat([da, db], dim='x').set_index(xy=['x', 'y']) data.sel(y='a') >>> <xarray.DataArray (x: 4)> >>> array([0, 1, 2, 3]) >>> Coordinates: >>> * x (x) int64 0 1
>>> <xarray.DataArray (x: 2)> >>> array([0, 1]) >>> Coordinates: >>> * x (x) int64 0 1
Should select the array
xr.show_versions()
xarray: 0.14.0 pandas: 0.24.2 numpy: 1.15.4 scipy: 1.2.1 netCDF4: 1.4.2 pydap: None h5netcdf: None h5py: 2.9.0 Nio: None zarr: None cftime: 1.0.3.4 nc_time_axis: None PseudoNetCDF: None rasterio: None cfgrib: None iris: None bottleneck: 1.2.1 dask: None distributed: None matplotlib: 3.0.2 cartopy: None seaborn: 0.9.0 numbagg: None setuptools: 40.8.0 pip: 19.0.3 conda: None pytest: 5.0.0 IPython: 7.3.0 sphinx: None
Sorry for being quiet for a long time. I hope I could send a fix for this in a few days...
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
MCVE Code Sample
Expected Output
Problem Description
Should select the array
Output of
xr.show_versions()
xarray: 0.14.0
pandas: 0.24.2
numpy: 1.15.4
scipy: 1.2.1
netCDF4: 1.4.2
pydap: None
h5netcdf: None
h5py: 2.9.0
Nio: None
zarr: None
cftime: 1.0.3.4
nc_time_axis: None
PseudoNetCDF: None
rasterio: None
cfgrib: None
iris: None
bottleneck: 1.2.1
dask: None
distributed: None
matplotlib: 3.0.2
cartopy: None
seaborn: 0.9.0
numbagg: None
setuptools: 40.8.0
pip: 19.0.3
conda: None
pytest: 5.0.0
IPython: 7.3.0
sphinx: None
Sorry for being quiet for a long time. I hope I could send a fix for this in a few days...
The text was updated successfully, but these errors were encountered: