I\'m having a problem with np.append.
np.append
I\'m trying to duplicate the last column of 20x361 matrix n_list_converted by using the code below:>
n_list_converted
You can also cast (n,) to (n,1) by enclosing within brackets [ ].
e.g. Instead of np.append(b,a,axis=0) use np.append(b,[a],axis=0)
np.append(b,a,axis=0)
np.append(b,[a],axis=0)
a=[1,2] b=[[5,6],[7,8]] np.append(b,[a],axis=0)
returns
array([[5, 6], [7, 8], [1, 2]])