I have run into some problems to extend numpy.ndarry,Is there some ways like the list's extend()?for example:given two arrays ,a=array([1,2,3]),b=array([4]),
want c=array([1,2,3,4])
or you can use hstack. for example
a = np.array([1,2,3])
b = np.array([4])
c = np.hstack([a,b])
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With