Skip to content

Commit f73a645

Browse files
committed
Website build
1 parent cfda255 commit f73a645

11 files changed

+236
-508
lines changed

1_introduction.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ <h3><span class="section-number">1.2.2. </span>Creating the venv<a class="header
304304
<h2><span class="section-number">1.3. </span>Installing Python packages<a class="headerlink" href="#installing-python-packages" title="Permalink to this headline"></a></h2>
305305
<p>Suppose we’ve created and activated a venv, and now there’s a Python package
306306
we’d like to have access to. Installation of Python packages is handled by the
307-
Python package <a class="reference external" href="https://pip.pypa.io/en/stable/" title="(in pip v21.3)"><span class="xref std std-doc">Pip</span></a>, which you will usually find
307+
Python package <a class="reference external" href="https://pip.pypa.io/en/stable/" title="(in pip v22.0)"><span class="xref std std-doc">Pip</span></a>, which you will usually find
308308
pre-installed in your Python installation. Pip has many usage options, which
309309
enable a large number of different installation configurations. However, for
310310
most users most of the time, a few simple pip commands suffice. As with

2_programs_in_files.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ <h2><span class="section-number">2.5. </span>Testing frameworks<a class="headerl
646646
including tests in your code here.</p>
647647
<p>There are a number of Python packages which support code testing. The concepts
648648
are largely similar so rather than get bogged down in the details of multiple
649-
frameworks, we will introduce <a class="reference external" href="https://docs.pytest.org/en/latest/index.html" title="(in pytest v7.1.0.dev95+g71baf24b6)"><span class="xref std std-doc">Pytest</span></a>, which is one of the
649+
frameworks, we will introduce <a class="reference external" href="https://docs.pytest.org/en/latest/index.html" title="(in pytest v7.1.0.dev166+g90b1c93f7)"><span class="xref std std-doc">Pytest</span></a>, which is one of the
650650
most widely used. Pytest is simply a Python package, so you can install it into
651651
your current environment using:</p>
652652
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp gp-VirtualEnv">(PoP_venv)</span> <span class="gp">$ </span>python -m pip install pytest
@@ -883,7 +883,7 @@ <h2><span class="section-number">2.7. </span>Glossary<a class="headerlink" href=
883883
whether the number is zero modulo any of the integers less than its square
884884
root will be fine. Test your code by running the following in the exercise
885885
repository:</p>
886-
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp gp-VirtualEnv">(PoP_venv)</span> <span class="gp">$ </span>pytest tests/test_exercise_2_4.py
886+
<div class="highlight-console notranslate"><div class="highlight"><pre><span></span><span class="gp gp-VirtualEnv">(PoP_venv)</span> <span class="gp">$ </span>pytest tests/test_exercise_2_3.py
887887
</pre></div>
888888
</div>
889889
<p>Then push your code to GitHub and check that the tests pass there too.</p>

5_abstract_data_types.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ <h2><span class="section-number">5.5. </span>Linked lists<a class="headerlink" h
651651
<div class="admonition hint">
652652
<p class="admonition-title">Hint</p>
653653
<p>Raising exceptions is the subject of <a class="reference internal" href="6_exceptions.html#raising-exceptions"><span class="std std-numref">Section 6.4</span></a>,
654-
to which we will turn presently. Fur current purposes, it is
654+
to which we will turn presently. For current purposes, it is
655655
sufficient to know that iteration is halted when <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#iterator.__next__" title="(in Python v3.10)"><code class="xref py py-meth docutils literal notranslate"><span class="pre">__next__()</span></code></a>
656656
executes this line of code:</p>
657657
<div class="highlight-python3 notranslate"><div class="highlight"><pre><span></span><span class="k">raise</span> <span class="ne">StopIteration</span>

8_debugging.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ <h2><span class="section-number">8.1. </span>Pandas<a class="headerlink" href="#
8282
because it’s a very useful tool for applied mathematicians and statisticians
8383
who need to work with real data, and partly because it’s a convenient somewhat
8484
larger library on which to practice tools and techniques for debugging.</p>
85-
<p>At the core of Pandas is the <a class="reference external" href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.html#pandas.DataFrame" title="(in pandas v1.3.5)"><code class="xref py py-class docutils literal notranslate"><span class="pre">DataFrame</span></code></a> class, which is
85+
<p>At the core of Pandas is the <a class="reference external" href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.html#pandas.DataFrame" title="(in pandas v1.4.0)"><code class="xref py py-class docutils literal notranslate"><span class="pre">DataFrame</span></code></a> class, which is
8686
a two-dimensional dataset somewhat analogous to a spreadsheet. Unlike, for
87-
example, a <a class="reference external" href="https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.22)"><code class="xref py py-class docutils literal notranslate"><span class="pre">numpy.ndarray</span></code></a>, a <a class="reference external" href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.html#pandas.DataFrame" title="(in pandas v1.3.5)"><code class="xref py py-class docutils literal notranslate"><span class="pre">DataFrame</span></code></a> is not indexed
87+
example, a <a class="reference external" href="https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v1.22)"><code class="xref py py-class docutils literal notranslate"><span class="pre">numpy.ndarray</span></code></a>, a <a class="reference external" href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.html#pandas.DataFrame" title="(in pandas v1.4.0)"><code class="xref py py-class docutils literal notranslate"><span class="pre">DataFrame</span></code></a> is not indexed
8888
by a pair of numbers, but is instead organised as a collection of named
89-
one-dimensional <a class="reference external" href="https://pandas.pydata.org/docs/reference/api/pandas.Series.html#pandas.Series" title="(in pandas v1.3.5)"><code class="xref py py-class docutils literal notranslate"><span class="pre">pandas.Series</span></code></a> of data. One can think of a
90-
<a class="reference external" href="https://pandas.pydata.org/docs/reference/api/pandas.Series.html#pandas.Series" title="(in pandas v1.3.5)"><code class="xref py py-class docutils literal notranslate"><span class="pre">pandas.Series</span></code></a> as a column of data with a title. This perhaps best
89+
one-dimensional <a class="reference external" href="https://pandas.pydata.org/docs/reference/api/pandas.Series.html#pandas.Series" title="(in pandas v1.4.0)"><code class="xref py py-class docutils literal notranslate"><span class="pre">pandas.Series</span></code></a> of data. One can think of a
90+
<a class="reference external" href="https://pandas.pydata.org/docs/reference/api/pandas.Series.html#pandas.Series" title="(in pandas v1.4.0)"><code class="xref py py-class docutils literal notranslate"><span class="pre">pandas.Series</span></code></a> as a column of data with a title. This perhaps best
9191
illustrated with an example.</p>
9292
<span id="student-data"></span><table class="docutils align-default" id="id6" style="width: 70%">
9393
<caption><span class="caption-number">Table 8.1 </span><span class="caption-text">Extract from some fictional student records. The full records
@@ -157,8 +157,8 @@ <h2><span class="section-number">8.1. </span>Pandas<a class="headerlink" href="#
157157
<span class="gh">Out[6]: </span><span class="go">pandas.core.series.Series</span>
158158
</pre></div>
159159
</div>
160-
<p>Observe that the <a class="reference external" href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.html#pandas.DataFrame" title="(in pandas v1.3.5)"><code class="xref py py-class docutils literal notranslate"><span class="pre">DataFrame</span></code></a> acts as a dictionary of
161-
one-dimensional data <a class="reference external" href="https://pandas.pydata.org/docs/reference/api/pandas.Series.html#pandas.Series" title="(in pandas v1.3.5)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Series</span></code></a>. A <a class="reference external" href="https://pandas.pydata.org/docs/reference/api/pandas.Series.html#pandas.Series" title="(in pandas v1.3.5)"><code class="xref py py-class docutils literal notranslate"><span class="pre">pandas.Series</span></code></a> can be
160+
<p>Observe that the <a class="reference external" href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.html#pandas.DataFrame" title="(in pandas v1.4.0)"><code class="xref py py-class docutils literal notranslate"><span class="pre">DataFrame</span></code></a> acts as a dictionary of
161+
one-dimensional data <a class="reference external" href="https://pandas.pydata.org/docs/reference/api/pandas.Series.html#pandas.Series" title="(in pandas v1.4.0)"><code class="xref py py-class docutils literal notranslate"><span class="pre">Series</span></code></a>. A <a class="reference external" href="https://pandas.pydata.org/docs/reference/api/pandas.Series.html#pandas.Series" title="(in pandas v1.4.0)"><code class="xref py py-class docutils literal notranslate"><span class="pre">pandas.Series</span></code></a> can be
162162
indexed and sliced like any other Python <a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#typesseq" title="(in Python v3.10)"><span class="xref std std-ref">sequence type</span></a>. This
163163
very high level introduction is all we’ll need to use pandas in demonstrations
164164
in this chapter. Much more documentation is available on the <a class="reference external" href="https://pandas.pydata.org/docs/">Pandas website</a>.</p>

_sources/2_programs_in_files.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ already familiar with Git and GitHub then you will also need to work through
10151015

10161016
.. code-block:: console
10171017
1018-
(PoP_venv) $ pytest tests/test_exercise_2_4.py
1018+
(PoP_venv) $ pytest tests/test_exercise_2_3.py
10191019
10201020
Then push your code to GitHub and check that the tests pass there too.
10211021

_sources/5_abstract_data_types.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ documented in the :ref:`official Python documentation <typeiter>`.
643643
.. hint::
644644

645645
Raising exceptions is the subject of :numref:`raising_exceptions`,
646-
to which we will turn presently. Fur current purposes, it is
646+
to which we will turn presently. For current purposes, it is
647647
sufficient to know that iteration is halted when :meth:`~iterator.__next__`
648648
executes this line of code:
649649

0 commit comments

Comments
 (0)