How to insert data in a numpy array, preserving its shape?
How to insert data in a numpy array, preserving its shape? Question: I have a collection of several data of fixed shape, and I need to store these values in an array, only creating a new dimension, so I can preserve its initial shape. Here is a small example, arr = np.array([0,1,2]) values = np.array([[3,4,5], …