Stacked Lines in Pandas
<p>I want to draw stacked lines in <code>pandas Dataframe</code>.
So, currently I draw one line:</p>

<pre><code>df.plot.line(x='xvals',y='yvals')
</code></pre>

<p>in which <code>xvals</code> column contains <code>x</code> values, and <code>yvals</code> contains <code>y</code> values. </p>

<p>How can I add another line in the same graph?</p>

<p>Keep the returned <code>Axes</code> object and pass to <code>ax</code> argument:</p>

<pre><code>ax = df.plot.line(x='xvals',y='yvals')
df.plot.line(x='xvals2',y='yvals2', ax=ax)
</code></pre>

python pandas dataframe