title: NameError: name 'row' is not defined
body: <p>I am using the Python 3.6.1(IDLE) and counting the frequency of the pos_tag. My code is</p>
  
  <pre><code>import csv
  import nltk
  with open('data.csv', 'rt') as f:
     readerf = csv.reader(f)
  from collections import Counter
  Counter([j for i,j in pos_tag(row)])
  </code></pre>
  
  <p>I am getting the following error message</p>
  
  <pre><code>Traceback (most recent call last):
     File "C:/Users/ABRAR/Google Drive/Tourism Project/TouristPython/POS_Tagging.py", line 7, in &lt;module&gt;
        Counter([j for i,j in pos_tag(row)])
  NameError: name 'row' is not defined
  </code></pre>
  
  <p>However,the same code run correctly in the jupyter(web based).
  Here is my sample data </p>
  
  <p>[ab,
  aback,
  abandon,
  abate,
  abc,
  ability,
  able,
  ablution,
  abound,
  abroad,
  abruptly,
  absence,
  absolute,
  absolutely,
  absorb]</p>
  
  <p>and here is the snap of jupyter
  <a href="https://i.stack.imgur.com/5bgK9.png" rel="nofollow noreferrer">code and answer</a></p>