|
|
@ -56,7 +56,7 @@ |
|
|
|
|
|
|
|
<body> |
|
|
|
<header> |
|
|
|
<aside>February 17, 2025</aside> |
|
|
|
<aside>February 18, 2025</aside> |
|
|
|
<a href="https://gto76.github.io" rel="author">Jure Šorn</a> |
|
|
|
</header> |
|
|
|
|
|
|
@ -2673,7 +2673,7 @@ b <span class="hljs-number">3</span> <span class="hljs-number">4</span> |
|
|
|
<DF> = <DF>.describe() <span class="hljs-comment"># Describes columns. Also info(), corr(), shape.</span> |
|
|
|
<DF> = <DF>.query(<span class="hljs-string">'<query>'</span>) <span class="hljs-comment"># Filters rows. For example `df.query('x > 1')`.</span> |
|
|
|
</code></pre> |
|
|
|
<pre><code class="python language-python hljs"><DF>.plot.line/area/bar/scatter(x=col_key, …) <span class="hljs-comment"># `y=col_key/s`. Also hist/box(by=col_key).</span> |
|
|
|
<pre><code class="python language-python hljs"><DF>.plot.line/area/bar/scatter(x=col_key, …) <span class="hljs-comment"># `y=col_key/s`. Also hist/box(column/by=col_k).</span> |
|
|
|
plt.show() <span class="hljs-comment"># Displays the plot. Also plt.savefig(<path>).</span> |
|
|
|
</code></pre> |
|
|
|
<div><h4 id="dataframemergejoinconcat">DataFrame — Merge, Join, Concat:</h4><pre><code class="python language-python hljs"><span class="hljs-meta">>>> </span>df_2 = pd.DataFrame([[<span class="hljs-number">4</span>, <span class="hljs-number">5</span>], [<span class="hljs-number">6</span>, <span class="hljs-number">7</span>]], index=[<span class="hljs-string">'b'</span>, <span class="hljs-string">'c'</span>], columns=[<span class="hljs-string">'y'</span>, <span class="hljs-string">'z'</span>]); df_2 |
|
|
@ -2942,7 +2942,7 @@ $ deactivate <span class="hljs-comment"># Deactivates the active |
|
|
|
|
|
|
|
|
|
|
|
<footer> |
|
|
|
<aside>February 17, 2025</aside> |
|
|
|
<aside>February 18, 2025</aside> |
|
|
|
<a href="https://gto76.github.io" rel="author">Jure Šorn</a> |
|
|
|
</footer> |
|
|
|
|
|
|
|