Skip to content

Commit fa5f177

Browse files
committed
deploy: 4fa81f5
1 parent 5c4fda0 commit fa5f177

File tree

4 files changed

+43
-42
lines changed

4 files changed

+43
-42
lines changed

part-gen-prog/03-data-struct.html

+5-4
Original file line numberDiff line numberDiff line change
@@ -869,12 +869,11 @@ <h1 class="title"><span id="sec-data-struct" class="quarto-section-identifier"><
869869
<span id="cb14-44"><a href="#cb14-44" aria-hidden="true" tabindex="-1"></a><span class="co">## 10 5</span></span>
870870
<span id="cb14-45"><a href="#cb14-45" aria-hidden="true" tabindex="-1"></a><span class="co">## dtype: int64</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
871871
</div>
872-
<p>The Series object has a list of labels in the first printed column, and a list of values in the second. If we want, we can specify the labels manually to use as e.g.&nbsp;plot labels later: ::: {.cell}</p>
872+
<p>The Series object has a list of labels in the first printed column, and a list of values in the second. If we want, we can specify the labels manually to use as e.g.&nbsp;plot labels later:</p>
873+
<div class="cell">
873874
<div class="sourceCode cell-code" id="cb15"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb15-1"><a href="#cb15-1" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> pandas <span class="im">as</span> pd</span>
874875
<span id="cb15-2"><a href="#cb15-2" aria-hidden="true" tabindex="-1"></a>weekdays <span class="op">=</span> pd.Series([<span class="st">'Sunday'</span>, <span class="st">'Monday'</span>, <span class="st">'Tuesday'</span>, <span class="st">'Wednesday'</span>, <span class="st">'Thursday'</span>, <span class="st">'Friday'</span>, <span class="st">'Saturday'</span>], index <span class="op">=</span> [<span class="st">'S'</span>, <span class="st">'M'</span>, <span class="st">'T'</span>, <span class="st">'W'</span>, <span class="st">'R'</span>, <span class="st">'F'</span>, <span class="st">'Sat'</span>])</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
875876
</div>
876-
</div>
877-
</div>
878877
<div class="cell">
879878
<div class="sourceCode cell-code" id="cb16"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb16-1"><a href="#cb16-1" aria-hidden="true" tabindex="-1"></a><span class="co"># access individual objs</span></span>
880879
<span id="cb16-2"><a href="#cb16-2" aria-hidden="true" tabindex="-1"></a>weekdays[<span class="dv">0</span>]</span>
@@ -902,7 +901,9 @@ <h1 class="title"><span id="sec-data-struct" class="quarto-section-identifier"><
902901
<span id="cb16-24"><a href="#cb16-24" aria-hidden="true" tabindex="-1"></a><span class="co">## Sat Saturday</span></span>
903902
<span id="cb16-25"><a href="#cb16-25" aria-hidden="true" tabindex="-1"></a><span class="co">## dtype: object</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
904903
</div>
905-
<p>:::</p>
904+
</div>
905+
</div>
906+
</div>
906907
<p>We can pull out items in a vector by indexing, but we can also replace specific things as well:</p>
907908
<div class="ex">
908909
<div class="tabset-margin-container"></div><div class="panel-tabset">

part-wrangling/02a-eda.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ <h1 class="title"><span id="sec-eda" class="quarto-section-identifier"><span cla
14861486
<span><span class="fu"><a href="https://ggplot2.tidyverse.org/reference/ggplot.html">ggplot</a></span><span class="op">(</span><span class="va">poke</span>, <span class="fu"><a href="https://ggplot2.tidyverse.org/reference/aes.html">aes</a></span><span class="op">(</span>x <span class="op">=</span> <span class="va">height_m</span><span class="op">)</span><span class="op">)</span> <span class="op">+</span></span>
14871487
<span> <span class="fu"><a href="https://ggplot2.tidyverse.org/reference/geom_density.html">geom_density</a></span><span class="op">(</span><span class="op">)</span> <span class="op">+</span></span>
14881488
<span> <span class="fu"><a href="https://ggplot2.tidyverse.org/reference/scale_continuous.html">scale_x_log10</a></span><span class="op">(</span><span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
1489-
<div class="cell quarto-layout-panel" data-layout-ncol="2" data-layout-align="center">
1489+
<div class="cell quarto-layout-panel" data-layout-align="center" data-layout-ncol="2">
14901490
<div class="quarto-layout-row">
14911491
<div class="quarto-layout-cell" style="flex-basis: 50.0%;justify-content: center;">
14921492
<div class="quarto-figure quarto-figure-center">

0 commit comments

Comments
 (0)