Skip to content

Commit

Permalink
flip order of new .to_values() doc header paragraphs
Browse files Browse the repository at this point in the history
  • Loading branch information
ks905383 committed Mar 11, 2024
1 parent 95187e7 commit 327228b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions xarray/core/dataarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -763,13 +763,13 @@ def values(self) -> np.ndarray:
"""
The array's data converted to numpy.ndarray.
Note that this array is not copied; operations on it follow
numpy's rules of what generates a view vs. a copy, and changes
to this array may be reflected in the DataArray as well.
This will attempt to convert the array naively using np.array(),
which will raise an error if the array type does not support
coercion like this (e.g. cupy).
Note that this array is not copied; operations on it follow
numpy's rules of what generates a view vs. a copy, and changes
to this array may be reflected in the DataArray as well.
"""
return self.variable.values

Expand Down

0 comments on commit 327228b

Please sign in to comment.