Skip to content

Commit 20f7799

Browse files
committed
Pandas
1 parent 1c920d1 commit 20f7799

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3184,7 +3184,8 @@ Name: a, dtype: int64
31843184
```
31853185

31863186
```python
3187-
<S>.plot.line/area/bar/pie/hist() # Generates a plot. `plt.show()` displays it.
3187+
<S>.plot.line/area/bar/pie/hist() # Generates a plot. Accepts `title=<str>`.
3188+
plt.show() # Displays the plot. Also plt.savefig(<path>).
31883189
```
31893190
* **Use `'print(<S>.to_string())'` to print a Series that has more than 60 items.**
31903191
* **Use `'<S>.index'` to get collection of keys and `'<S>.index = <coll>'` to update them.**

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2608,7 +2608,8 @@ <h3 id="format-2">Format</h3><div><h4 id="forstandardtypesizesandmanualalignment
26082608
&lt;S&gt; = &lt;S&gt;.dt.year/month/day/hour <span class="hljs-comment"># Use pd.to_datetime(&lt;S&gt;) to get S of datetimes.</span>
26092609
&lt;S&gt; = &lt;S&gt;.dt.to_period(<span class="hljs-string">'y/m/d/h'</span>) <span class="hljs-comment"># Quantizes datetimes into Period objects.</span>
26102610
</code></pre>
2611-
<pre><code class="python language-python hljs">&lt;S&gt;.plot.line/area/bar/pie/hist() <span class="hljs-comment"># Generates a plot. `plt.show()` displays it.</span>
2611+
<pre><code class="python language-python hljs">&lt;S&gt;.plot.line/area/bar/pie/hist() <span class="hljs-comment"># Generates a plot. Accepts `title=&lt;str&gt;`.</span>
2612+
plt.show() <span class="hljs-comment"># Displays the plot. Also plt.savefig(&lt;path&gt;).</span>
26122613
</code></pre>
26132614
<ul>
26142615
<li><strong>Use <code class="python hljs"><span class="hljs-string">'print(&lt;S&gt;.to_string())'</span></code> to print a Series that has more than 60 items.</strong></li>

0 commit comments

Comments
 (0)