title: Word frequency per pandas dataframe row
body: <p>I'm trying to figure out how to get most frequent words per dataframe row - lets say the top 10 most frequent words.  I have code that gets me most frequent words for the whole DF, but now I need to be more granular.</p>
  
  <pre><code>import pandas as pd
  import numpy as np
  df1 = pd.read_csv('C:/temp/comments.csv',encoding='latin-1',names=['client','comments'])
  df1.head(3)
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/afoDQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/afoDQ.png" alt="enter image description here"></a></p>
  
  <p>Now I can get the most frequent words on the whole df1:</p>
  
  <pre><code>y = pd.Series(' '.join(df1['description']).lower().split()).value_counts()[:10]
  </code></pre>
  
  <p>how to get that info per df row?</p>