Mar-10-2023, 01:08 PM
If I am reading it correctly, your np.arange(value) gives you default start (0), stop point of your df.iloc[].size, and does not specify the interval. The np.linspace call specifies tart, stop, and the number of steps which I think is what you want.
Also, according to the docs
Also, according to the docs
Quote:When using a non-integer step, such as 0.1, it is often better to use numpy.linspace.