Skip to content

Commit

Permalink
[docs] amend Dataset.assign_coords example (pydata#6336)
Browse files Browse the repository at this point in the history
* remove np.random uses

 * fix one copy-paste artifact 'description:  Temperature data'
  • Loading branch information
Greg Behm committed May 4, 2022
2 parents dc533c8 + 3aa2ebb commit 357f4cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xarray/core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,8 @@ def assign_coords(self, coords=None, **coords_kwargs):
... coords=dict(
... lon=(["x", "y"], [[260.17, 260.68], [260.21, 260.77]]),
... lat=(["x", "y"], [[42.25, 42.21], [42.63, 42.59]]),
... time = pd.date_range("2014-09-06", periods=4),
... reference_time = pd.Timestamp("2014-09-05")
... time=pd.date_range("2014-09-06", periods=3),
... reference_time=pd.Timestamp("2014-09-05"),
... ),
... attrs=dict(description="Weather-related data"),
... )
Expand Down

0 comments on commit 357f4cc

Please sign in to comment.