Reputation: 312
I have a doubt in numpy array concatenation.
For eg,
If I have
a = [ 1, 2, 3]
b = [4, 5, 6, 7]
c= [5, 2]
Could I concatenate arrays of different size??? If so, How could it be possible?
Upvotes: 0
Views: 149
Reputation: 1779
Yes, You can using numpy.concatenate
import numpy as np
a = [ 1, 2, 3]
b = [4, 5, 6, 7]
c= [5, 2]
d = np.concatenate((a, b, c))
Upvotes: 1