diff options
author | Matheus Portela <matheus.v.portela@gmail.com> | 2017-07-28 22:40:18 -0700 |
---|---|---|
committer | Matheus Portela <matheus.v.portela@gmail.com> | 2017-07-28 22:40:18 -0700 |
commit | ada5d5c0c083e0a0fc9cc7838ce3ca381adc8120 (patch) | |
tree | 5c9163e67b60b0ba3a619a124e82e5182eb1511d /doc/source/user | |
parent | 2791167653a1b586aa54830cc2ab4f736cbe4f0a (diff) | |
download | numpy-ada5d5c0c083e0a0fc9cc7838ce3ca381adc8120.tar.gz |
Replace xrange by range in quickstart docs
Diffstat (limited to 'doc/source/user')
-rw-r--r-- | doc/source/user/quickstart.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/source/user/quickstart.rst b/doc/source/user/quickstart.rst index 7295d1aca..f37e255bc 100644 --- a/doc/source/user/quickstart.rst +++ b/doc/source/user/quickstart.rst @@ -1119,13 +1119,13 @@ value of time-dependent series:: [-0.53657292, 0.42016704, 0.99060736, 0.65028784], [-0.28790332, -0.96139749, -0.75098725, 0.14987721]]) >>> - >>> ind = data.argmax(axis=0) # index of the maxima for each series + >>> ind = data.argmax(axis=0) # index of the maxima for each series >>> ind array([2, 0, 3, 1]) >>> - >>> time_max = time[ ind] # times corresponding to the maxima + >>> time_max = time[ind] # times corresponding to the maxima >>> - >>> data_max = data[ind, xrange(data.shape[1])] # => data[ind[0],0], data[ind[1],1]... + >>> data_max = data[ind, range(data.shape[1])] # => data[ind[0],0], data[ind[1],1]... >>> >>> time_max array([ 82.5 , 20. , 113.75, 51.25]) |