Skip to content

Commit

Permalink
Replace bio abbreviations; make value_counts() examples consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
stefmolin committed Nov 5, 2024
1 parent e0ab7d0 commit 7afc723
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion notebooks/1-getting_started_with_pandas.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2269,7 +2269,7 @@
}
],
"source": [
"df.value_counts(subset=['nametype', 'fall'], normalize=True)"
"meteorites.value_counts(subset=['nametype', 'fall'], normalize=True)"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions slides/0-introduction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
"- 👩‍💻 Software engineer at Bloomberg in NYC\n",
"- 🚀 Core developer of [numpydoc](https://github.com/numpy/numpydoc)\n",
"- ✍️ Author of [Hands-On Data Analysis with Pandas](https://www.amazon.com/Hands-Data-Analysis-Pandas-visualization-dp-1800563450/dp/1800563450/) (currently in its second edition; translated into Korean and Simplified Chinese)\n",
"- 🎓 BS in operations research from Columbia University\n",
"- 🎓 MS in computer science (ML specialization) from Georgia Tech"
"- 🎓 Bachelor's in operations research from Columbia University\n",
"- 🎓 Master's in computer science (ML specialization) from Georgia Tech"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion slides/1-getting_started_with_pandas.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2654,7 +2654,7 @@
}
],
"source": [
"df.value_counts(subset=['nametype', 'fall'], normalize=True)"
"meteorites.value_counts(subset=['nametype', 'fall'], normalize=True)"
]
},
{
Expand Down
6 changes: 3 additions & 3 deletions slides/html/workshop.slides.html
Original file line number Diff line number Diff line change
Expand Up @@ -7540,8 +7540,8 @@ <h2 id="Bio">Bio<a class="anchor-link" href="#Bio">¶</a></h2><ul>
<li>👩‍💻 Software engineer at Bloomberg in NYC</li>
<li>🚀 Core developer of <a href="https://github.com/numpy/numpydoc">numpydoc</a></li>
<li>✍️ Author of <a href="https://www.amazon.com/Hands-Data-Analysis-Pandas-visualization-dp-1800563450/dp/1800563450/">Hands-On Data Analysis with Pandas</a> (currently in its second edition; translated into Korean and Simplified Chinese)</li>
<li>🎓 BS in operations research from Columbia University</li>
<li>🎓 MS in computer science (ML specialization) from Georgia Tech</li>
<li>🎓 Bachelor's in operations research from Columbia University</li>
<li>🎓 Master's in computer science (ML specialization) from Georgia Tech</li>
</ul>
</div>
</div>
Expand Down Expand Up @@ -9801,7 +9801,7 @@ <h4 id="How-many-of-the-meteorites-were-found-versus-observed-falling?">How many
<div class="jp-InputPrompt jp-InputArea-prompt">In [25]:</div>
<div class="jp-CodeMirrorEditor jp-Editor jp-InputArea-editor" data-type="inline">
<div class="cm-editor cm-s-jupyter">
<div class="highlight hl-ipython3"><pre><span></span><span class="n">df</span><span class="o">.</span><span class="n">value_counts</span><span class="p">(</span><span class="n">subset</span><span class="o">=</span><span class="p">[</span><span class="s1">'nametype'</span><span class="p">,</span> <span class="s1">'fall'</span><span class="p">],</span> <span class="n">normalize</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
<div class="highlight hl-ipython3"><pre><span></span><span class="n">meteorites</span><span class="o">.</span><span class="n">value_counts</span><span class="p">(</span><span class="n">subset</span><span class="o">=</span><span class="p">[</span><span class="s1">'nametype'</span><span class="p">,</span> <span class="s1">'fall'</span><span class="p">],</span> <span class="n">normalize</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
</pre></div>
</div>
</div>
Expand Down

0 comments on commit 7afc723

Please sign in to comment.