Skip to content

Commit

Permalink
Pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
gto76 committed Feb 18, 2025
1 parent 7605ef7 commit c4ae1b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3273,7 +3273,7 @@ b 3 4
```

```python
<DF>.plot.line/area/bar/scatter(x=col_key, …) # `y=col_key/s`. Also hist/box(by=col_key).
<DF>.plot.line/area/bar/scatter(x=col_key, …) # `y=col_key/s`. Also hist/box(column/by=col_k).
plt.show() # Displays the plot. Also plt.savefig(<path>).
```

Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down Expand Up @@ -2673,7 +2673,7 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment
&lt;DF&gt; = &lt;DF&gt;.describe() <span class="hljs-comment"># Describes columns. Also info(), corr(), shape.</span>
&lt;DF&gt; = &lt;DF&gt;.query(<span class="hljs-string">'&lt;query&gt;'</span>) <span class="hljs-comment"># Filters rows. For example `df.query('x &gt; 1')`.</span>
</code></pre>
<pre><code class="python language-python hljs">&lt;DF&gt;.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">&lt;DF&gt;.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(&lt;path&gt;).</span>
</code></pre>
<div><h4 id="dataframemergejoinconcat">DataFrame — Merge, Join, Concat:</h4><pre><code class="python language-python hljs"><span class="hljs-meta">&gt;&gt;&gt; </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
Expand Down Expand Up @@ -2942,7 +2942,7 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment


<footer>
<aside>February 17, 2025</aside>
<aside>February 18, 2025</aside>
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
</footer>

Expand Down

0 comments on commit c4ae1b9

Please sign in to comment.