title: machine learning , Python
body: <p>Can someone help me out in solving the problem given below:</p>
  
  <p>We have a column 'Review' in a SFrame for different products. I want to create a word_count column which should count the occurrence of only a given set of selected words and not all the words.</p>
  
  <p>Alternatively, even if we create a word count with all the words in a review, we can still subset the resulting dictionary, which will give a new column of dictionary with only selected words as the keys of dictionary and the corresponding value.</p>
  
  <p>For example if selected_words = ['Good','Awesome'] , the result should derive word_count = {'Good':1,'Awesome':1} as given below:</p>
  
  <p><a href="https://i.stack.imgur.com/eq1Gg.jpg" rel="nofollow noreferrer">enter image description here</a>
  Thanks in advance .</p>