Skip to content

Commit 357f4cc

Browse files
author
Greg Behm
committed
[docs] amend Dataset.assign_coords example (pydata#6336)
* remove np.random uses * fix one copy-paste artifact 'description: Temperature data'
2 parents dc533c8 + 3aa2ebb commit 357f4cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xarray/core/common.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,8 +504,8 @@ def assign_coords(self, coords=None, **coords_kwargs):
504504
... coords=dict(
505505
... lon=(["x", "y"], [[260.17, 260.68], [260.21, 260.77]]),
506506
... lat=(["x", "y"], [[42.25, 42.21], [42.63, 42.59]]),
507-
... time = pd.date_range("2014-09-06", periods=4),
508-
... reference_time = pd.Timestamp("2014-09-05")
507+
... time=pd.date_range("2014-09-06", periods=3),
508+
... reference_time=pd.Timestamp("2014-09-05"),
509509
... ),
510510
... attrs=dict(description="Weather-related data"),
511511
... )

0 commit comments

Comments
 (0)