np fill code example
Example 1: fill np array with same value
an_array = np.full((3, 5), 8)
Example 2: np.full
>>> np.full((2, 2), np.inf)
array([[inf, inf],
[inf, inf]])
>>> np.full((2, 2), 10)
array([[10, 10],
[10, 10]])
an_array = np.full((3, 5), 8)
>>> np.full((2, 2), np.inf)
array([[inf, inf],
[inf, inf]])
>>> np.full((2, 2), 10)
array([[10, 10],
[10, 10]])