InterviewSolution
Saved Bookmarks
| 1. |
Which of the following function stacks 1D arrays as columns into a 2D array?(a) row_stack(b) column_stack(c) com_stack(d) all of the mentionedThe question was posed to me in a job interview.The doubt is from NumPy topic in division Developing Data Products and Working with NumPy of Data Science |
|
Answer» RIGHT choice is (b) column_stack To EXPLAIN I WOULD say: column_stack is equivalent to vstack only for 1D ARRAYS. |
|