-->

Shape Pattern Coloring Pages


-->

Shape Pattern Coloring Pages. Shape is a tuple that gives you an indication of the number of dimensions in the array. Please can someone tell me work of shape [0] and shape [1]?

Free Printable Geometric Pattern Colouring Page L.J. Knight Art
Free Printable Geometric Pattern Colouring Page L.J. Knight Art from www.ljknightart.com

82 yourarray.shape or np.shape() or np.ma.shape() returns the shape of your ndarray as a tuple; In python shape [0] returns the dimension but in this code it is returning total number of set. (r,) and (r,1) just add (useless) parentheses but still express respectively 1d and 2d array.

-->

Free Printable Geometric Pattern Colouring Page L.J. Knight Art

Please can someone tell me work of shape [0] and shape [1]? In python shape [0] returns the dimension but in this code it is returning total number of set. 2 x[0].shape gives you the length of the first row. So in your case, since the index value of y.shape[0] is 0, your are working along the first dimension of your.

-->