In [1]:
import numpy as np

In [2]:
x = np.arange(9)

In [3]:
x


Out[3]:
array([0, 1, 2, 3, 4, 5, 6, 7, 8])

In [6]:
x.size


Out[6]:
9

In [7]:
y = x.reshape((3,3))

In [8]:
y.size


Out[8]:
9

In [9]:
y.shape


Out[9]:
(3, 3)

In [10]:
x.shape


Out[10]:
(9,)

In [ ]: