Mapping/plotting distance of values in 1 dimensional array/ series
<p>I have a pandas series which goes something like this:</p>

<pre><code>(['StartGame', 'TutorialEnded',  'FBConnect',
  'StartGame', 'Sale', 'FBConnect', 'InviteSent',
  'StartGame', 'Finish_1', 'Sale', 'Bought',
  'Finish_22',  'FBConnect', 'Finish_2',
  'TutorialEnded', 'Finish_18', ...])
</code></pre>

<p>I would like to plot the distance between values that contain the string <code>Finish</code> and the appearance of the value <code>sale</code> to see if there is any correlation between the two, as well as check correlation between the appearence of other words in relation to <code>sale</code>. In other word, can I use the appearence of any values in my series to predict the occurence of <code>sale</code> nearby? Even to plot a scatter line where I assign each value a different color so I can get a feel for it would be helpful, but I'm not sure how to do it.</p>