We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63861ee commit f14ad1aCopy full SHA for f14ad1a
xarray/core/dataarray.py
@@ -591,8 +591,8 @@ def subset(dim, label):
591
raise ValueError(
592
f"Splitting along the dimension {dim!r} would produce the variables "
593
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."
+ f"coordinate variables. Use DataArray.rename({rename_msg_fmt}) or "
+ f"DataArray.assign_coords({dim}=...) to resolve this ambiguity."
596
)
597
598
indexes = filter_indexes_from_coords(self._indexes, coord_names)
0 commit comments