diff --git a/fundamentals/02.2_manipulating_dimensions.ipynb b/fundamentals/02.2_manipulating_dimensions.ipynb index 9cf4bd15..f158badd 100644 --- a/fundamentals/02.2_manipulating_dimensions.ipynb +++ b/fundamentals/02.2_manipulating_dimensions.ipynb @@ -36,7 +36,7 @@ " dims=(\"x\", \"y\"),\n", " coords={\n", " \"x\": [-3.2, 2.1, 5.3, 6.5],\n", - " \"y\": pd.date_range(\"2009-01-05\", periods=6, freq=\"M\"),\n", + " \"y\": pd.date_range(\"2009-01-05\", periods=6, freq=\"ME\"),\n", " },\n", ")\n", "arr" diff --git a/fundamentals/03.2_groupby_with_xarray.ipynb b/fundamentals/03.2_groupby_with_xarray.ipynb index cb1ba252..ab743e9b 100644 --- a/fundamentals/03.2_groupby_with_xarray.ipynb +++ b/fundamentals/03.2_groupby_with_xarray.ipynb @@ -526,7 +526,7 @@ "metadata": {}, "outputs": [], "source": [ - "resample_obj = ds_anom.resample(time=\"5Y\")\n", + "resample_obj = ds_anom.resample(time=\"5YE\")\n", "resample_obj" ] }, @@ -593,7 +593,7 @@ ":::{admonition} Solution\n", ":class: dropdown\n", "```python\n", - "resampled = ds.resample(time='Y').mean().sst.sel(lon=300, lat=50)\n", + "resampled = ds.resample(time='YE').mean().sst.sel(lon=300, lat=50)\n", "resampled.plot();\n", "```\n", ":::\n", diff --git a/fundamentals/05_intro_to_dask.ipynb b/fundamentals/05_intro_to_dask.ipynb index d6877ad2..cf7065d5 100644 --- a/fundamentals/05_intro_to_dask.ipynb +++ b/fundamentals/05_intro_to_dask.ipynb @@ -160,7 +160,7 @@ "A crucal difference with Dask is that we must specify the `chunks` argument.\n", "\"Chunks\" describes how the array is split up over many sub-arrays.\n", "\n", - "![Dask Arrays](http://docs.dask.org/en/latest/_images/dask-array-black-text.svg)\n", + "![Dask Arrays](https://docs.dask.org/en/latest/_images/dask-array.svg)\n", "_source:\n", "[Dask Array Documentation](http://docs.dask.org/en/latest/array-overview.html)_\n", "\n", diff --git a/overview/xarray-in-45-min.ipynb b/overview/xarray-in-45-min.ipynb index 658be41b..2b8c3616 100644 --- a/overview/xarray-in-45-min.ipynb +++ b/overview/xarray-in-45-min.ipynb @@ -593,7 +593,7 @@ "source": [ "### Broadcasting: expanding data\n", "\n", - "Our longitude and latitude length DataArrays are both 1D with different dimension names. If we multiple these DataArrays together the dimensionality is expanded to 2D by _broadcasting_:" + "Our longitude and latitude length DataArrays are both 1D with different dimension names. If we multiply these DataArrays together the dimensionality is expanded to 2D by _broadcasting_:" ] }, { @@ -822,7 +822,7 @@ "outputs": [], "source": [ "# resample to monthly frequency\n", - "ds.resample(time=\"M\").mean()" + "ds.resample(time=\"ME\").mean()" ] }, {