Data analysis labNumPy problems

Problem 8 of 50 · Create arrays · Easy

Numbers 0 through 8 as a grid

Reshape a flat range into a 3 by 3 grid.

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

Start from np.arange(9) and print those numbers as a 3 by 3 grid, row by row. Do not type the grid by hand.

1

Your solution

2

Scratch