summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmet Can Solak <asolak14@ku.edu.tr>2021-06-07 09:59:57 -0700
committerGitHub <noreply@github.com>2021-06-07 09:59:57 -0700
commite213ccdcb017fa7cf7f04a84769bc538a7f6fe63 (patch)
treee2349d8e2429e4dae4cfa2b056e5d621c342fb75
parent0b2d3b191e181d34f7118a740c73585bbfbf0b4d (diff)
downloadnumpy-e213ccdcb017fa7cf7f04a84769bc538a7f6fe63.tar.gz
Update numpy/lib/index_tricks.py
Co-authored-by: Matti Picus <matti.picus@gmail.com>
-rw-r--r--numpy/lib/index_tricks.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py
index d54df2776..5140ffa61 100644
--- a/numpy/lib/index_tricks.py
+++ b/numpy/lib/index_tricks.py
@@ -642,7 +642,8 @@ class ndindex:
(2, 0, 0)
(2, 1, 0)
- >>> # same dimensions - but in a tuple (3, 2, 1)
+ Same dimensions - but in a tuple ``(3, 2, 1)``
+
>>> for index in np.ndindex((3, 2, 1)):
... print(index)
(0, 0, 0)