a = array.array('d')
for x in range(100):
    a.extend([random.random() for _ in range(10)])
na = np.frombuffer(a, dtype=float).reshape(-1, 10)
np.sum(na, axis=0)
what is a reason to use ndarray instead of python array