-->

Shape Coloring Pages Preschool


-->

Shape Coloring Pages Preschool. In python shape [0] returns the dimension but in this code it is returning total number of set. X.shape[0] gives the first element in that tuple, which is 10.

Shapes Activity Pack for Preschool 50 Pages of Coloring, Tracing
Shapes Activity Pack for Preschool 50 Pages of Coloring, Tracing from www.teacherspayteachers.com

82 yourarray.shape or np.shape() or np.ma.shape() returns the shape of your ndarray as a tuple; (r,) and (r,1) just add (useless) parentheses but still express respectively 1d and 2d array. So in your case, since the index value of y.shape[0] is 0, your are working along the first.

-->

Shapes Activity Pack for Preschool 50 Pages of Coloring, Tracing

And you can get the (number of) dimensions of your array using yourarray.ndim. So in your case, since the index value of y.shape[0] is 0, your are working along the first. 82 yourarray.shape or np.shape() or np.ma.shape() returns the shape of your ndarray as a tuple; And you can get the (number of) dimensions of your array using yourarray.ndim.

-->