We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07b9856 commit be99673Copy full SHA for be99673
xarray/core/coordinates.py
@@ -995,6 +995,9 @@ def create_coords_with_default_indexes(
995
variable = as_variable(obj, name=name, auto_convert=False)
996
997
if variable.dims == (name,):
998
+ # still needed to convert to IndexVariable first due to some
999
+ # pandas multi-index edge cases.
1000
+ variable = variable.to_index_variable()
1001
idx, idx_vars = create_default_index_implicit(variable, all_variables)
1002
indexes.update({k: idx for k in idx_vars})
1003
variables.update(idx_vars)
0 commit comments