I am trying replicate R's seq function in Python
For example in R:
sequence = seq(from = 1, to = 3, by = 1)
output = 1 2 3
And in Python I find the linspace commmand:
np.linspace(start=1, stop=3, num=1)
output = array([1.])
But it specifies the number of elements rather than the step size.
I was looking for something like R's output.