Check the docs for np.arange:
np.arange
When using a non-integer step, such as 0.1, the results will often not be consistent. It is better to use numpy.linspace for these cases.
1.4m articles
1.4m replys
5 comments
56.9k users