Skip to content

Commit 5eaa9c6

Browse files
author
Greg Behm
committed
[docs] amend Dataset.assign_coords example (pydata#6336)
* fix time period typo
1 parent 357f4cc commit 5eaa9c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xarray/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ 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=3),
507+
... time=pd.date_range("2014-09-06", periods=4),
508508
... reference_time=pd.Timestamp("2014-09-05"),
509509
... ),
510510
... attrs=dict(description="Weather-related data"),

0 commit comments

Comments
 (0)