title: How to read the first few lines of a tsv.gz file in python?
body: <p>How to read the first few lines of a tsv.gz file in python?
  I wrote the following lines:</p>
  <pre><code>import gzip
  
  with gzip.open('HELLO.tsv.gz', 'rb') as f:
      tsv_file = f.read() 
      read_tsv = csv.reader(tsv_file, delimiter=&quot;\t&quot;)
  
      number_of_lines = 10
  
      for i in range(number_of_lines):
          line = read_tsv.readline()
      
  print(line)
  </code></pre>
  <p>However, it comes the error:</p>
  <pre><code>name 'csv' is not defined
  </code></pre>
  <p>Thank you for your help.</p>