I have one data frame df consisting of a 2 columns(word and meaning/definition of that word). I want to use the Collections.Counter object for each definition of a word and count the frequency of words occurring in the definition in the most pythonic way possible.
The traditional approach would be to iterate over the data frame using the iterrows() methods and do the computations.
Sample output
<table style="height: 59px;" border="True" width="340">
<tbody>
<tr>
<td>Word</td>
<td>Meaning</td>
<td>Word Freq</td>
</tr>
<tr>
<td>Array</td>
<td>collection of homogeneous datatype</td>
<td>{'collection':1,'of':1....}</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tbody>
</table>
