What Shape Rug Under Round Table - Gardening Place

Shape n, expresses the shape of a 1D array with n items, and n, 1 the shape of a n-row x 1-column array. (R,) and (R,1) just add (useless) parentheses but still express respectively 1D and 2D array shapes, Parentheses around a tuple force the evaluation order and prevent it to be read as a list of values (e.g. in function calls).

On the other hand, x.shape is a 2-tuple which represents the shape of x, which in this case is (10, 1024). x.shape[0] gives the first element in that tuple, which is 10. Here's a demo with some smaller numbers, which should hopefully be easier to understand. If you don't understand where the (1512000,) shaped array comes from, you aren't using np.append right.

what shape rug under round table, What's the shape of temp? np.append is a thin, and many ways misleading, cover for np.concatenate. Pay attention to what it is actually doing. Don't assume; test.