Which function stacks arrays horizontally?
-
A
np.vstack
-
B
np.hstack
Correct answer
-
C
np.concatenate
-
D
np.append
Correct answer
B. np.hstack
16 views
Explanation
np.hstack() concatenates along axis 1.
Doubts & discussion
Not sure why the answer is B? Ask here and get an explanation.
Ask a doubt about this MCQ