In [24]: import numpy as np In [25]: a = np.arange(0, 10, 1, dtype=float) In [26]: a Out[26]: array([ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9.])