title: How to extract antonyms from a dataframe and put it in another using wordnet python
body: <p>I'm trying to get a set of synonyms and antonyms for each column in my data frame, i was able to get the synonyms but the antonym, i wasn't able to, this is my attempt, thank you </p>
  
  <pre><code>import pandas  as pd
  import nltk.corpus
  from nltk.corpus import stopwords, wordnet
  from nltk.tokenize import word_tokenize
  from nltk.stem import PorterStemmer, WordNetLemmatizer
  
  df = pd.read_csv('healthtapQAs++.csv')
  df['unpunctuated'] = df['question'].str.replace(r'[^\w\s]+', '')
  df['tokenized'] = df['unpunctuated'].apply(word_tokenize) 
  stop = stopwords.words('english')
  df['stopped']= df['tokenized'].apply(lambda x: [item for item in x if item 
  not in stop])
  df['syno'] = df['stopped'].apply(lambda x: [wordnet.synsets(y) for y in x])
  df['synonyms_question'] = df['syno'].apply( lambda x:[(y[0].lemmas() 
  [0].name()) if len(y) &gt;0 else "" for y in x])
  anto = df['syno']
  for j in anto.lemmas():
       if j.antonyms():
           df['antonyms'] = j.antonyms[0]().name()
  #df['antoyms_question'] = df['syno'].apply( lambda x:[(for j in 
  y[0].lemmas() if if j.antonyms()) if len(y) &gt;0 else "" for y in x])
  </code></pre>
  
  <p>and this the error that i get, I'm a total novice when it comes to coding... thank you.</p>
  
  <pre><code>    return object.__getattribute__(self, name)
  
       AttributeError: 'Series' object has no attribute 'lemmas'
  </code></pre>