Skip to content

Commit c9537ae

Browse files
authored
A few minor changes to fix a typo, broken link, and some deprecations (#322)
* Update xarray-in-45-min.ipynb - typo * Update xarray-in-45-min.ipynb - update alias used in resample * Update 02.2_manipulating_dimensions.ipynb - update alias used in * Update 03.2_groupby_with_xarray.ipynb - update time alias * Update 05_intro_to_dask.ipynb - update URL for Dask diagram
1 parent 8e69353 commit c9537ae

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

fundamentals/02.2_manipulating_dimensions.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
" dims=(\"x\", \"y\"),\n",
3737
" coords={\n",
3838
" \"x\": [-3.2, 2.1, 5.3, 6.5],\n",
39-
" \"y\": pd.date_range(\"2009-01-05\", periods=6, freq=\"M\"),\n",
39+
" \"y\": pd.date_range(\"2009-01-05\", periods=6, freq=\"ME\"),\n",
4040
" },\n",
4141
")\n",
4242
"arr"

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",

fundamentals/05_intro_to_dask.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
"A crucal difference with Dask is that we must specify the `chunks` argument.\n",
161161
"\"Chunks\" describes how the array is split up over many sub-arrays.\n",
162162
"\n",
163-
"![Dask Arrays](http://docs.dask.org/en/latest/_images/dask-array-black-text.svg)\n",
163+
"![Dask Arrays](https://docs.dask.org/en/latest/_images/dask-array.svg)\n",
164164
"_source:\n",
165165
"[Dask Array Documentation](http://docs.dask.org/en/latest/array-overview.html)_\n",
166166
"\n",

overview/xarray-in-45-min.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@
593593
"source": [
594594
"### Broadcasting: expanding data\n",
595595
"\n",
596-
"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_:"
596+
"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_:"
597597
]
598598
},
599599
{
@@ -822,7 +822,7 @@
822822
"outputs": [],
823823
"source": [
824824
"# resample to monthly frequency\n",
825-
"ds.resample(time=\"M\").mean()"
825+
"ds.resample(time=\"ME\").mean()"
826826
]
827827
},
828828
{

0 commit comments

Comments
 (0)