diff options
| author | Ahmet Can Solak <asolak14@ku.edu.tr> | 2021-06-07 09:59:57 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-07 09:59:57 -0700 |
| commit | e213ccdcb017fa7cf7f04a84769bc538a7f6fe63 (patch) | |
| tree | e2349d8e2429e4dae4cfa2b056e5d621c342fb75 | |
| parent | 0b2d3b191e181d34f7118a740c73585bbfbf0b4d (diff) | |
| download | numpy-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.py | 3 |
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) |
