Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
negin513 committed Jul 2, 2024
1 parent 5f18954 commit 3081b36
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions intermediate/indexing/advanced-indexing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
":::{note} Orthogonal indexing with NumPy\n",
":class: dropdown\n",
"\n",
"While Pointwise indexing is the default behavior in NumPy, you can achieve orthogonal indexing by using the [`np.ix_` function](https://numpy.org/doc/stable/reference/generated/numpy.ix_.html). This function constructs an open mesh from multiple arrays, allowing you to index along each dimension independently similar to Xarray indexing behavior. For example: \n",
"While pointwise indexing is the default behavior in NumPy, you can achieve orthogonal indexing by using the [`np.ix_` function](https://numpy.org/doc/stable/reference/generated/numpy.ix_.html). This function constructs an open mesh from multiple arrays, allowing you to index along each dimension independently similar to Xarray indexing behavior. For example: \n",
"\n",
"```python\n",
"ixgrid = np.ix_([0, 2, 4], [0, 2, 4])\n",
Expand Down Expand Up @@ -400,6 +400,11 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
Expand All @@ -409,7 +414,7 @@
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3"
"pygments_lexer": "ipython3",
"version": "3.9.18"
},
"toc": {
Expand Down

0 comments on commit 3081b36

Please sign in to comment.