title: nltk Sentiment analyzer be trippin. How to solve slicing from dataframe
body: <p>Hy. Im trying to run a sentiment analyzer.
  <a href="https://i.stack.imgur.com/vuQ1R.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>posts=data[["Name_author", "comment"]]
  posts.head(5)
  
  rev=posts['comment'][0]
  rev
  
  analyzer=SentimentIntensityAnalyzer()
  analyzer.polarity_scores(rev)
  
  body=posts.comment
  neg,neu,pos,compound=[],[],[],[]
  for post in body:
    res=analyzer.polarity_scores(str(posts))
    neg.append(res['neg'])
    neu.append(res['neu'])
    pos.append(res['pos'])
    compound.append(res['compound'])
    
    #Append results
  posts["Negative"]=neg
  posts["Neutral"]=neu
  posts["Positive"]=pos
  posts["Compound"]=compound
  posts.head(5)</code></pre>
  </div>
  </div>
  </p>
  <p>Then Im getting the following:</p>
  <p>/usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py:2: SettingWithCopyWarning:
  A value is trying to be set on a copy of a slice from a DataFrame.
  Try using .loc[row_indexer,col_indexer] = value instead</p>
  <p>See the caveats in the documentation: <a href="https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy" rel="nofollow noreferrer">https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy</a></p>
  <p>/usr/local/lib/python3.7/dist-packages/ipykernel_launcher.py:3: SettingWithCopyWarning:
  A value is trying to be set on a copy of a slice from a DataFrame.
  Try using .loc[row_indexer,col_indexer] = value instead</p>
  <p>See the caveats in the documentation: <a href="https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy" rel="nofollow noreferrer">https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy</a>
  This is separate from the ipykernel package so we can avoid doing imports until
  Name_author comment Negative    Neutral Positive    Compound
  0   [TE] Typical Yekaterinburg  The presidential envoy to the Urals Federal Di...   0.105   0.871   0.023   -0.9041
  1   [TE] Typical Yekaterinburg  Due to sanctions, a flight from the Netherlan...    0.105   0.871   0.023   -0.9041
  2   [TE] Typical Yekaterinburg  In Nizhny Tagil, they decided not to start sir...   0.105   0.871   0.023   -0.9041
  3   [TE] Typical Yekaterinburg  In the Sverdlovsk region, they are looking for...   0.105   0.871   0.023   -0.9041
  4   [TE] Typical Yekaterinburg  Several newspapers of the Sverdlovsk region ca...   0.105   0.871   0.023   -0.9041</p>
  <p>Anyone got a suggestion or fix? Appreciate it</p>