is_max = s == s.max() | How should I read this?
<p>While studying <a href="http://pandas.pydata.org/pandas-docs/stable/style.html" rel="nofollow">Pandas Style</a>, I got to the following:</p>

<pre><code>def highlight_max(s):
    '''
    highlight the maximum in a Series yellow.
    '''
    is_max = s == s.max()
    return ['background-color: yellow' if v else '' for v in is_max]
</code></pre>

<p>How should I read <code>is_max = s == s.max()</code>?</p>

<blockquote>
  <p>is_max is EQUAL TO comparison of s and s_max</p>
</blockquote>

python python-2.7 pandas