Skip to content

Commit 1d244ea

Browse files
committed
typo
1 parent 87b22b6 commit 1d244ea

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

intermediate/indexing/advanced-indexing.ipynb

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@
239239
"To trigger vectorized indexing behavior, you will need to provide the selection dimensions with a new **shared** output dimension name. This means that the dimensions of both indexers must be the same, and the output will have the same dimension name as the indexers.\n",
240240
"```\n",
241241
"\n",
242-
"Let's see how this works with an example. A researcher wants to find the nearest climate model grid cell to a collection of observation sites. She has the latitude and longitude of the observation sites as following:"
242+
"Let's see how this works with an example:\n",
243+
"\n",
244+
"A researcher wants to find the nearest climate model grid cell to a collection of observation sites. They have the latitude and longitude of the observation sites as following:"
243245
]
244246
},
245247
{
@@ -257,7 +259,7 @@
257259
"cell_type": "markdown",
258260
"metadata": {},
259261
"source": [
260-
"If the researcher use the lists to index the DataArray, they will get the orthogonal indexing behavior, which is not what they wants."
262+
"If the researcher use the lists to index the DataArray, they will get the orthogonal indexing behavior, which is not what they want."
261263
]
262264
},
263265
{
@@ -266,7 +268,7 @@
266268
"metadata": {},
267269
"outputs": [],
268270
"source": [
269-
"da_air.sel(lat=obs_lats, lon=obs_lats, method=\"nearest\") # -- orthogonal indexing"
271+
"da_air.sel(lat=obs_lats, lon=obs_lats, method=\"nearest\") # -- orthogonal indexing"
270272
]
271273
},
272274
{
@@ -400,6 +402,11 @@
400402
}
401403
],
402404
"metadata": {
405+
"kernelspec": {
406+
"display_name": "Python 3 (ipykernel)",
407+
"language": "python",
408+
"name": "python3"
409+
},
403410
"language_info": {
404411
"codemirror_mode": {
405412
"name": "ipython",
@@ -409,7 +416,8 @@
409416
"mimetype": "text/x-python",
410417
"name": "python",
411418
"nbconvert_exporter": "python",
412-
"pygments_lexer": "ipython3"
419+
"pygments_lexer": "ipython3",
420+
"version": "3.12.3"
413421
},
414422
"toc": {
415423
"base_numbering": 1,

0 commit comments

Comments
 (0)