Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 49)
49.
Given two NumPy arrays arr1 and arr2, what does np.vstack((arr1, arr2)) do?
Stacks the arrays vertically.
Stacks the arrays horizontally.
Creates a new array by vertically concatenating the arrays.
Creates a new array by horizontally concatenating the arrays.
Answer: Option
Explanation:
The np.vstack() function stacks the arrays vertically.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.