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 d79fc9d commit 02e3ca2Copy full SHA for 02e3ca2
xarray/core/dataset.py
@@ -5807,11 +5807,10 @@ def drop_vars(
5807
other_names.update(idx_other_names)
5808
if other_names:
5809
names_set |= set(other_names)
5810
- warnings.warn(
+ emit_user_level_warning(
5811
f"Deleting a single level of a MultiIndex is deprecated. Previously, this deleted all levels of a MultiIndex. "
5812
f"Please also drop the following variables: {other_names!r} to avoid an error in the future.",
5813
DeprecationWarning,
5814
- stacklevel=2,
5815
)
5816
5817
assert_no_index_corrupted(self.xindexes, names_set)
0 commit comments