Skip to content

Commit be7c673

Browse files
authored
Update 03.2_groupby_with_xarray.ipynb - update time alias
1 parent e72abcb commit be7c673

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fundamentals/03.2_groupby_with_xarray.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@
526526
"metadata": {},
527527
"outputs": [],
528528
"source": [
529-
"resample_obj = ds_anom.resample(time=\"5Y\")\n",
529+
"resample_obj = ds_anom.resample(time=\"5YE\")\n",
530530
"resample_obj"
531531
]
532532
},
@@ -593,7 +593,7 @@
593593
":::{admonition} Solution\n",
594594
":class: dropdown\n",
595595
"```python\n",
596-
"resampled = ds.resample(time='Y').mean().sst.sel(lon=300, lat=50)\n",
596+
"resampled = ds.resample(time='YE').mean().sst.sel(lon=300, lat=50)\n",
597597
"resampled.plot();\n",
598598
"```\n",
599599
":::\n",

0 commit comments

Comments
 (0)