-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
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
Stacking doesn't work on dims named ""
#9969
Comments
Thanks for raising. Should we even be allowing a dim named |
@TomNicholas as the representative of strings, I'd imagine you would be eager to support (jokes aside, yeah, this seems niche, and I'm guessing it breaks for non-string hashables too?) |
The bug happens here: Line 950 in 1c7ee65
Not sure what the case |
given the context I would assume (MultiIndex levels without associated coordinates have been deprecated for a while now – not sure how long, though, but it must be at least two years – so we might also choose to complete the deprecation cycle and remove that part of the code) |
What happened?
Stacking a dataset on a dimensions named
""
raises a KeyError.What did you expect to happen?
No exception.
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
Anything else we need to know?
I bisected the regression to 3ead17ea.
Environment
INSTALLED VERSIONS
commit: None
python: 3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:40:32) [GCC 12.3.0]
python-bits: 64
OS: Linux
OS-release: 4.18.0-477.67.1.el8_8.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LOCALE: ('en_US', 'UTF-8')
libhdf5: 1.10.6
libnetcdf: None
xarray: 2025.1.1
pandas: 2.2.3
numpy: 1.26.4
scipy: 1.10.1
netCDF4: None
pydap: None
h5netcdf: None
h5py: 3.6.0
zarr: 2.13.3
cftime: None
nc_time_axis: None
iris: None
bottleneck: 1.3.2.dev0
dask: 2023.6.0
distributed: 2023.6.0
matplotlib: 3.5.3
cartopy: None
seaborn: 0.11.2
numbagg: installed
fsspec: 2024.3.1
cupy: None
pint: 0.24.3
sparse: 0.15.4
flox: None
numpy_groupies: None
setuptools: 65.5.0
pip: 23.0.1
conda: None
pytest: 7.4.4
mypy: 1.10.0
IPython: 7.31.1
sphinx: 7.3.7
The text was updated successfully, but these errors were encountered: