These are chat archives for numpy/numpy

18th
Oct 2017
Saurabh Vyas
@saurabhvyas
Oct 18 2017 16:24
guys what does [-1] mean in indexing, for instance if an array is of size 22828 , I see printing arr[-1] gives a array of size 28*28 , can I find its function in detail ?
Denis Lisov
@tanriol
Oct 18 2017 16:26
arr[-1] is the same as arr[len(arr) - 1]
Saurabh Vyas
@saurabhvyas
Oct 18 2017 16:26
oh I see , thank you @tanriol