title: Selecting random rows (of data) from dataframe / csv file in Python after designating start and end row number?
body: <p>Using the <code>sample()</code> function I can get the random rows. Data set having <code>1000000</code> rows of data and I want to have a subset of <code>20000</code> rows. Importing random lines can be done through this solution</p>
  <p><a href="https://stackoverflow.com/a/22259008/8966221">https://stackoverflow.com/a/22259008/8966221</a></p>
  <h1>reading a dataset</h1>
  <pre><code>dataset = read_csv(file_path)
  </code></pre>
  <p>dataset_sub = dataset.sample(20000, random_state=1)</p>
  <p>However I want to select random rows between row number <code>250000</code> to <code>750000</code>. Any possible solution in that regard?.</p>