Skip to content

Commit b8286a0

Browse files
committed
Support reset_index
1 parent cc823b6 commit b8286a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cf_xarray/accessor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ def _get_measure(
256256
#: Default mappers for common keys.
257257
_DEFAULT_KEY_MAPPERS: Mapping[str, Mapper] = {
258258
"dim": _get_axis_coord,
259+
"dims_or_levels": _get_axis_coord, # reset_index
259260
"coord": _get_axis_coord_single,
260261
"group": _get_axis_coord_single,
261262
"weights": _get_measure_variable, # type: ignore

0 commit comments

Comments
 (0)