Skip to content

Commit f14ad1a

Browse files
mgunyhodcherian
andauthored
Tweak error message
Co-authored-by: Deepak Cherian <[email protected]>
1 parent 63861ee commit f14ad1a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xarray/core/dataarray.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,8 +591,8 @@ def subset(dim, label):
591591
raise ValueError(
592592
f"Splitting along the dimension {dim!r} would produce the variables "
593593
f"{tuple(sorted(both_variables_and_coords))} which are also existing "
594-
f"coordinates of the data. Use rename({rename_msg_fmt}) or "
595-
f"assign_coords({dim}=...) to resolve this ambiguity."
594+
f"coordinate variables. Use DataArray.rename({rename_msg_fmt}) or "
595+
f"DataArray.assign_coords({dim}=...) to resolve this ambiguity."
596596
)
597597

598598
indexes = filter_indexes_from_coords(self._indexes, coord_names)

0 commit comments

Comments
 (0)