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 35f0fcd commit 0f53296Copy full SHA for 0f53296
xarray/core/dataset.py
@@ -4772,9 +4772,7 @@ def expand_dims(
4772
if d in self.dims:
4773
raise ValueError(f"Dimension {d} already exists.")
4774
if d in self._variables and not utils.is_scalar(self._variables[d]):
4775
- raise ValueError(
4776
- f"{d} already exists as coordinate or variable name."
4777
- )
+ raise ValueError(f"{d} already exists as coordinate or variable name.")
4778
4779
variables: dict[Hashable, Variable] = {}
4780
indexes: dict[Hashable, Index] = dict(self._indexes)
0 commit comments