As getting the random values can be retrieved by using range(start, stop[, step])
However, I tried this function, np.arange()
and set the np.random.seed(10)
and dataset.sample(n=5)
, but they do not work with my case.
What I am doing is that I import the 5 columns and 100 rows data from the excel file and I would like to randomly select 5 rows from the a column having integer values of 1-100. However, I would like the randomly selected numbers to have the step of 20.
Do you have any recommendation?
Thank you so much 🙂
1