title: How can I partially read a huge CSV file?
body: <p>I have a very big csv file so that I can not read them all into the memory. I only want to read and process a few lines in it. So I am seeking a function in Pandas which could handle this task, which the basic python can handle this well:</p>
  
  <pre><code>with open('abc.csv') as f:
      line = f.readline()
      # pass until it reaches a particular line number....
  </code></pre>
  
  <p>However, if I do this in pandas, I always read the first line:</p>
  
  <pre><code>datainput1 = pd.read_csv('matrix.txt',sep=',', header = None, nrows = 1 )
  datainput2 = pd.read_csv('matrix.txt',sep=',', header = None, nrows = 1 )
  </code></pre>
  
  <p>I am looking for some easier way to handle this task in pandas. For example, if I want to read rows from 1000 to 2000. How can I do this quickly? </p>
  
  <p>I want to use pandas because I want to read data into the dataframe.</p>