title: how can i convert first row of a text file into list in python escaping NaNs?
body: <p>how can i convert first line of a text file into list in python? I want to escape NaNs while converting into the list.</p>
  
  <pre><code>import csv
  with open ('data.txt', 'r') as f:
      first_row = [column[0] for column in csv.reader(f,delimiter='\t')]
      print (first_row)
  </code></pre>