Performing math operations when plotting Pandas Dataframe columns
<p>I'd like to plot products, ratios, etc of columns in a Pandas Data Frame without first creating a new column containing that product, ratio, etc. E.g., </p>

<p>[df['A']/df['A']].plot()</p>

<p>doesn't work. For the following code:</p>

<pre><code>x = np.array([[1,2,3],[4,5,6]])
df = pd.DataFrame(x,columns=['A','B','C'])
[df['A']/df['B']].plot()
</code></pre>

<p>I get the following error message: "AttributeError: 'list' object has no attribute 'plot' "</p>