1# Basic syntax:
2np.ones((number_rows, number_cols), dtype=int)
3
4# Example usage:
5import numpy as np
6np.ones((5, 3), dtype=int)
7array([[1, 1, 1],
8 [1, 1, 1],
9 [1, 1, 1],
10 [1, 1, 1],
11 [1, 1, 1]])
12
13# Note, use np.zeros to create an array of zeros