In the code below, I am trying to keep the array elements as tuples.
>>> a = np.int32([(1, 2), (3, 4)])
>>> a
array([[1, 2],
[3, 4]], dtype=int32)
>>> np.mean(a[:, 0], axis=0)
>>> np.mean(a[:, 1], axis=0)
Where things break is when I am trying to add more elements.
>>> a = np.append(a, ([4, 5]))
>>> a
array([1, 2, 3, 4, 4, 5])
How can I keep the array in the same way, so I am still able to reference the first and second values of each of its element's tuples?