Data analysis labNumPy problems

Problem 36 of 50 · Shape · Medium

Stack two rows

Combine two 1-D arrays into a matrix.

Preparing NumPy, Pandas, and MatplotlibShift+Enter runs the cell you are in.

You have two rows, [1, 2, 3] and [4, 5, 6]. Print them as a 2 by 3 table. np.vstack stacks along a new first axis.

1

Your solution

2

Scratch