Note the difference between array and arrange The list comes after the array
filename.rb
import numpy as np
np.array([1,2,3])
>>>Output result
array([1, 2, 3])
Specify one number after arrange, and create an element that is amplified at equal intervals by the number of the number.
filename.rb
import numpy as np
np.arange(4)
>>>Output result
array([0, 1, 2, 3])
Recommended Posts