Python Programming - Arrays - Discussion

Discussion Forum : Arrays - General Questions (Q.No. 39)
39.
Given two NumPy arrays arr1 and arr2, what does np.column_stack((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.column_stack() function stacks the arrays horizontally.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.