summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmetCanSolak <asolak14@ku.edu.tr>2021-06-07 08:42:54 -0700
committerAhmetCanSolak <asolak14@ku.edu.tr>2021-06-07 08:47:55 -0700
commit26a3f719eb4904274a79c61317eb4b3a20fa452c (patch)
tree77a13ecdf54437c757fe6cc30b71823eb471cd84
parentfc8e3bbe419748ac5c6b7f3d0845e4bafa74644b (diff)
downloadnumpy-26a3f719eb4904274a79c61317eb4b3a20fa452c.tar.gz
DOC: docstring fix implemented for ndindex class under index_tricks
-rw-r--r--numpy/lib/index_tricks.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py
index 72d8e9de4..20bb7e170 100644
--- a/numpy/lib/index_tricks.py
+++ b/numpy/lib/index_tricks.py
@@ -631,7 +631,7 @@ class ndindex:
Examples
--------
- # dimensions as individual arguments
+ >>> # dimensions as individual arguments
>>> for index in np.ndindex(3, 2, 1):
... print(index)
(0, 0, 0)
@@ -641,7 +641,7 @@ 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)