Teaching Pandas and Jupyter to Northwestern journalism students
<p><pre><code>  But pandas’ magical simplicity makes things like computed columns immediately intuitive:
  &gt; data[&#x27;% of total&#x27;] = data.amount &#x2F; data.amount.sum()
</code></pre>
Is that immediately intuitive? I&#x27;m staring at this trying to understand what it&#x27;s doing. Is the &#x2F; operator overloaded? data.amount is one particular amount, and data.amount.sum() is the sum of all amounts? Why does the &quot;computed column&quot; property goes on the same data object as the actual data? Maybe it&#x27;s immediately intuitive if you&#x27;ve used pandas.