<S> = <S>.combine_first(<S>) <spanclass="hljs-comment"># Adds items that are not yet present.</span>
<S>.update(<S>) <spanclass="hljs-comment"># Updates items that are already present.</span>
</code></pre>
<pre><codeclass="python language-python hljs"><S>.plot.line/area/bar/pie/hist() <spanclass="hljs-comment"># Generates a Matplotlib plot.</span>
<pre><codeclass="python language-python hljs"><S>.plot.line/area/bar/pie/hist() <spanclass="hljs-comment"># Generates a plot. Accepts `title=<str>`.</span>
plt.show() <spanclass="hljs-comment"># Displays the plot. Also plt.savefig(<path>).</span>
</code></pre>
<ul>
@ -2659,7 +2659,7 @@ b <span class="hljs-number">3</span> <span class="hljs-number">4</span>
<DF> = <DF>.sort_values(col_key/s) <spanclass="hljs-comment"># Sorts rows by passed column/s. Also `axis=1`.</span>
</code></pre>
<pre><codeclass="python language-python hljs"><DF> = <DF>.head/tail/sample(<int>) <spanclass="hljs-comment"># Returns first, last, or random n rows.</span>
<DF> = <DF>.describe() <spanclass="hljs-comment"># Describes columns. Also shape, info(), corr().</span>
<DF> = <DF>.describe() <spanclass="hljs-comment"># Describes columns. Also info(), corr(), shape.</span>
<DF> = <DF>.query(<spanclass="hljs-string">'<query>'</span>) <spanclass="hljs-comment"># Filters rows with e.g. 'col_1 == val_1 and …'.</span>
</code></pre>
<pre><codeclass="python language-python hljs"><DF>.plot.line/area/bar/scatter(x=col_key, …) <spanclass="hljs-comment"># `y=col_key/s`. Also hist/box(by=col_key).</span>