I have a list containing 1D numpy arrays different sizes. Now I want to remove the last value of each numpy array inside this list and concatenate them into one 1D numpy array.
As an example, I have this:
p=[np.array([1,2,3,4,5,6]),np.array([1,2,3]),np.array([1,2])]
and I would like to have that:
p=np.array([1,2,3,4,5,1,2,1])
I will appreciate any help to approach this issue.