Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 24)
24.
How do you stack two NumPy arrays vertically?
np.concatenate((arr1, arr2), axis=0)
np.vstack((arr1, arr2))
np.stack((arr1, arr2), axis=0)
np.append(arr1, arr2, axis=0)
Answer: Option
Explanation:
The np.vstack() function in NumPy is used to stack arrays vertically.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.