File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1027,10 +1027,10 @@ def drop_indexed_coords(
1027
1027
if isinstance (idx , PandasMultiIndex ) and idx_drop_coords == {idx .dim }:
1028
1028
idx_drop_coords .update (idx .index .names )
1029
1029
emit_user_level_warning (
1030
- f"updating coordinate { idx .dim !r} with a PandasMultiIndex would leave "
1030
+ f"updating coordinate { idx .dim !r} , which is a PandasMultiIndex, would leave "
1031
1031
f"the multi-index level coordinates { list (idx .index .names )!r} in an inconsistent state. "
1032
- f"This will raise an error in the future. Use `.drop_vars({ list (idx_coords )!r} )` before "
1033
- "assigning new coordinate values." ,
1032
+ f"This will raise an error in the future. Use `.drop_vars({ list (idx_coords )!r} )` "
1033
+ "to drop the coordinates' values before assigning new coordinate values." ,
1034
1034
FutureWarning ,
1035
1035
)
1036
1036
You can’t perform that action at this time.
0 commit comments