ellipsis in python as index

Solutions on MaxInterview for ellipsis in python as index by the best coders in the world

showing results for - "ellipsis in python as index"
Juan Diego
26 Feb 2017
1#The ellipsis is used in numpy to slice higher-dimensional data structures.
2#It's designed to mean at this point, insert as many full slices (:) 
3#to extend the multi-dimensional slice to all dimensions. so e.g.
4a = np.zeros((3,3,3))
5a[::, 0]
6#gives the same as
7a[..., 0]
similar questions
queries leading to this page
ellipsis in python as index