>>> np.full((3, 5), 7) array([[ 7.,  7.,  7.,  7.,  7.],        [ 7.,  7.,  7.,  7.,  7.],        [ 7.,  7.,  7.,  7.,  7.]])  >>> np.full((3, 5), 7, dtype=int) array([[7, 7, 7, 7, 7],        [7, 7, 7, 7, 7],        [7, 7, 7, 7, 7]]) 

Read more of this post