Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccardle committed Feb 1, 2024
1 parent d6a275f commit beb8807
Show file tree
Hide file tree
Showing 28 changed files with 2,053 additions and 161 deletions.
16 changes: 8 additions & 8 deletions Week_01/Lesson_05.html
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@ <h3>Standard Library Highlights<a class="headerlink" href="#standard-library-hig
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.11290791626756647
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>0.9358210265806103
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -845,7 +845,7 @@ <h3>Standard Library Highlights<a class="headerlink" href="#standard-library-hig
</div>
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-01-31 08:52:49.083772
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>2024-02-01 11:23:41.161342
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -1168,9 +1168,9 @@ <h3>Basic Quiz Game<a class="headerlink" href="#basic-quiz-game" title="Permalin
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>What is the capital of France?
a. Paris
b. London
c. Rome
a. London
b. Rome
c. Paris
</pre></div>
</div>
<div class="output traceback highlight-ipythontb notranslate"><div class="highlight"><pre><span></span><span class="gt">---------------------------------------------------------------------------</span>
Expand Down Expand Up @@ -1250,9 +1250,9 @@ <h3>Basic Quiz Game<a class="headerlink" href="#basic-quiz-game" title="Permalin
</div>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>What is the capital of France?
a. London
b. Rome
c. Paris
a. Rome
b. Paris
c. London
</pre></div>
</div>
<div class="output traceback highlight-ipythontb notranslate"><div class="highlight"><pre><span></span><span class="gt">---------------------------------------------------------------------------</span>
Expand Down
18 changes: 9 additions & 9 deletions Week_02/Lesson_07.html
Original file line number Diff line number Diff line change
Expand Up @@ -742,15 +742,15 @@ <h3>Matrix Dot Product (Element-wise Product):<a class="headerlink" href="#matri
[[ 38 50]
[ 83 113]]

[[ 27 47 40 45]
[ 75 153 114 109]
[ 27 100 89 60]
[ 24 38 14 22]]

[[ 80 0 84 46]
[ 32 0 18 20]
[106 16 118 112]
[ 74 14 98 93]]
[[107 150 25 149]
[ 57 53 11 56]
[138 110 55 135]
[ 81 50 0 91]]

[[108 107 41 89]
[ 83 112 31 99]
[118 103 76 92]
[ 35 52 7 10]]
</pre></div>
</div>
</div>
Expand Down
18 changes: 3 additions & 15 deletions Week_02/Lesson_10.html
Original file line number Diff line number Diff line change
Expand Up @@ -595,18 +595,6 @@ <h4>Step 1: Import Necessary Libraries<a class="headerlink" href="#step-1-import
</pre></div>
</div>
</div>
<div class="cell_output docutils container">
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_288453/584559657.py:3: DeprecationWarning:
Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0),
(to allow more performant data types, such as the Arrow string type, and better interoperability with other libraries)
but was not found to be installed on your system.
If this would cause problems for you,
please provide us feedback at https://github.com/pandas-dev/pandas/issues/54466

import pandas as pd
</pre></div>
</div>
</div>
</div>
</section>
<section id="step-2-descriptive-statistics">
Expand Down Expand Up @@ -663,7 +651,7 @@ <h4>Step 3: Understanding Distributions<a class="headerlink" href="#step-3-under
</div>
</div>
<div class="cell_output docutils container">
<img alt="../_images/a298648d33b481f372b4498a7f50d6080ac2ff6cb7286d57d3c8a7e488319dab.png" src="../_images/a298648d33b481f372b4498a7f50d6080ac2ff6cb7286d57d3c8a7e488319dab.png" />
<img alt="../_images/39df2d21eff0dfd4dd9edc53ee564d1370658038f0eed8e082158f82b940cbc6.png" src="../_images/39df2d21eff0dfd4dd9edc53ee564d1370658038f0eed8e082158f82b940cbc6.png" />
</div>
</div>
<p><strong>Binomial Distribution Example</strong></p>
Expand All @@ -683,7 +671,7 @@ <h4>Step 3: Understanding Distributions<a class="headerlink" href="#step-3-under
</div>
</div>
<div class="cell_output docutils container">
<img alt="../_images/596a853ea8f36fbbdd24acadc5c2d5007c23779e63fc1516ee16885d91138718.png" src="../_images/596a853ea8f36fbbdd24acadc5c2d5007c23779e63fc1516ee16885d91138718.png" />
<img alt="../_images/79f6cf0e07194ca4585989c103e4392c5ab7f37984a1a132e6301658d2211195.png" src="../_images/79f6cf0e07194ca4585989c103e4392c5ab7f37984a1a132e6301658d2211195.png" />
</div>
</div>
<p><strong>Poisson Distribution Example</strong></p>
Expand All @@ -703,7 +691,7 @@ <h4>Step 3: Understanding Distributions<a class="headerlink" href="#step-3-under
</div>
</div>
<div class="cell_output docutils container">
<img alt="../_images/8c3a0d5ed06805763b5404ef2a3b932553e09a5d3a21332e387e2d8401ad344f.png" src="../_images/8c3a0d5ed06805763b5404ef2a3b932553e09a5d3a21332e387e2d8401ad344f.png" />
<img alt="../_images/649a7c39613ebb2286b44424d4d44c740bd0834ff1452f817002fe582e9124e3.png" src="../_images/649a7c39613ebb2286b44424d4d44c740bd0834ff1452f817002fe582e9124e3.png" />
</div>
</div>
</section>
Expand Down
12 changes: 0 additions & 12 deletions Week_03/Lesson_11.html
Original file line number Diff line number Diff line change
Expand Up @@ -598,18 +598,6 @@ <h3>Setup for Activities<a class="headerlink" href="#setup-for-activities" title
</pre></div>
</div>
</div>
<div class="cell_output docutils container">
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_288486/2223182689.py:3: DeprecationWarning:
Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0),
(to allow more performant data types, such as the Arrow string type, and better interoperability with other libraries)
but was not found to be installed on your system.
If this would cause problems for you,
please provide us feedback at https://github.com/pandas-dev/pandas/issues/54466

import pandas as pd
</pre></div>
</div>
</div>
</div>
<div class="cell docutils container">
<div class="cell_input docutils container">
Expand Down
12 changes: 0 additions & 12 deletions Week_03/Lesson_12solution.html
Original file line number Diff line number Diff line change
Expand Up @@ -603,18 +603,6 @@ <h2>Objective<a class="headerlink" href="#objective" title="Permalink to this he
</pre></div>
</div>
</div>
<div class="cell_output docutils container">
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_288519/2223182689.py:3: DeprecationWarning:
Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0),
(to allow more performant data types, such as the Arrow string type, and better interoperability with other libraries)
but was not found to be installed on your system.
If this would cause problems for you,
please provide us feedback at https://github.com/pandas-dev/pandas/issues/54466

import pandas as pd
</pre></div>
</div>
</div>
</div>
<div class="cell docutils container">
<div class="cell_input docutils container">
Expand Down
14 changes: 2 additions & 12 deletions Week_03/Lesson_13.html
Original file line number Diff line number Diff line change
Expand Up @@ -650,16 +650,6 @@ <h2>Step 1: Load and Explore the Dataset<a class="headerlink" href="#step-1-load
dtype: int64
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_288555/245541981.py:1: DeprecationWarning:
Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0),
(to allow more performant data types, such as the Arrow string type, and better interoperability with other libraries)
but was not found to be installed on your system.
If this would cause problems for you,
please provide us feedback at https://github.com/pandas-dev/pandas/issues/54466

import pandas as pd
</pre></div>
</div>
</div>
</div>
</section>
Expand Down Expand Up @@ -724,14 +714,14 @@ <h3>General Best Practices<a class="headerlink" href="#general-best-practices" t
</div>
</div>
<div class="cell_output docutils container">
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_288555/684399944.py:1: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_349199/684399944.py:1: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.

For example, when doing &#39;df[col].method(value, inplace=True)&#39;, try using &#39;df.method({col: value}, inplace=True)&#39; or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.


titanic_data[&#39;Age&#39;].fillna(titanic_data[&#39;Age&#39;].median(), inplace=True)
/tmp/ipykernel_288555/684399944.py:3: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
/tmp/ipykernel_349199/684399944.py:3: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.

For example, when doing &#39;df[col].method(value, inplace=True)&#39;, try using &#39;df.method({col: value}, inplace=True)&#39; or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.
Expand Down
12 changes: 1 addition & 11 deletions Week_03/Lesson_14.html
Original file line number Diff line number Diff line change
Expand Up @@ -872,16 +872,6 @@ <h3>Best Practices and Considerations<a class="headerlink" href="#best-practices
4 5 5.0 3.6 1.4 0.2 Iris-setosa
</pre></div>
</div>
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_288580/2131166956.py:1: DeprecationWarning:
Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0),
(to allow more performant data types, such as the Arrow string type, and better interoperability with other libraries)
but was not found to be installed on your system.
If this would cause problems for you,
please provide us feedback at https://github.com/pandas-dev/pandas/issues/54466

import pandas as pd
</pre></div>
</div>
</div>
</div>
<div class="cell docutils container">
Expand Down Expand Up @@ -1128,7 +1118,7 @@ <h3>Step 8: Statistical Summary Comparison<a class="headerlink" href="#step-8-st
</div>
</div>
<div class="cell_output docutils container">
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_288580/1279951594.py:6: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_349225/1279951594.py:6: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.

For example, when doing &#39;df[col].method(value, inplace=True)&#39;, try using &#39;df.method({col: value}, inplace=True)&#39; or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.
Expand Down
10 changes: 0 additions & 10 deletions Week_03/Lesson_15.html
Original file line number Diff line number Diff line change
Expand Up @@ -752,16 +752,6 @@ <h3>Step 1: Load the necessary libraries<a class="headerlink" href="#step-1-load
</div>
</div>
<div class="cell_output docutils container">
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_288616/3916798240.py:2: DeprecationWarning:
Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0),
(to allow more performant data types, such as the Arrow string type, and better interoperability with other libraries)
but was not found to be installed on your system.
If this would cause problems for you,
please provide us feedback at https://github.com/pandas-dev/pandas/issues/54466

import pandas as pd
</pre></div>
</div>
<div class="output traceback highlight-ipythontb notranslate"><div class="highlight"><pre><span></span><span class="gt">---------------------------------------------------------------------------</span>
<span class="ne">ModuleNotFoundError</span><span class="g g-Whitespace"> </span>Traceback (most recent call last)
<span class="n">Cell</span> <span class="n">In</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span> <span class="n">line</span> <span class="mi">6</span>
Expand Down
36 changes: 2 additions & 34 deletions Week_04/Lesson_16.html
Original file line number Diff line number Diff line change
Expand Up @@ -581,18 +581,6 @@ <h2>Prerequisites<a class="headerlink" href="#prerequisites" title="Permalink to
</pre></div>
</div>
</div>
<div class="cell_output docutils container">
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_288649/955872667.py:2: DeprecationWarning:
Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0),
(to allow more performant data types, such as the Arrow string type, and better interoperability with other libraries)
but was not found to be installed on your system.
If this would cause problems for you,
please provide us feedback at https://github.com/pandas-dev/pandas/issues/54466

import pandas as pd
</pre></div>
</div>
</div>
</div>
</section>
<section id="advanced-introduction-to-exploratory-data-analysis-eda">
Expand Down Expand Up @@ -678,7 +666,7 @@ <h3>Heatmaps:<a class="headerlink" href="#heatmaps" title="Permalink to this hea
<span class="n">sns</span><span class="o">.</span><span class="n">heatmap</span><span class="p">(</span><span class="n">correlation_matrix</span><span class="p">,</span> <span class="n">annot</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
<span class="n">plt</span><span class="o">.</span><span class="n">title</span><span class="p">(</span><span class="s1">&#39;Heatmap of Correlation Matrix&#39;</span><span class="p">)</span>
<span class="n">plt</span><span class="o">.</span><span class="n">show</span><span class="p">()</span>
<span class="n">corr</span> <span class="o">=</span> <span class="n">data</span><span class="o">.</span><span class="n">corr</span><span class="p">()</span>
<span class="n">corr</span> <span class="o">=</span> <span class="n">wine_data</span><span class="o">.</span><span class="n">corr</span><span class="p">()</span>
<span class="n">ax</span> <span class="o">=</span> <span class="n">sns</span><span class="o">.</span><span class="n">heatmap</span><span class="p">(</span>
<span class="n">corr</span><span class="p">,</span>
<span class="n">vmin</span><span class="o">=-</span><span class="mi">1</span><span class="p">,</span> <span class="n">vmax</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">center</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span>
Expand All @@ -695,27 +683,7 @@ <h3>Heatmaps:<a class="headerlink" href="#heatmaps" title="Permalink to this hea
</div>
<div class="cell_output docutils container">
<img alt="../_images/d016d42b686188666a8d4d2319a12020df3c5f980b386b5d06f890cae1b01141.png" src="../_images/d016d42b686188666a8d4d2319a12020df3c5f980b386b5d06f890cae1b01141.png" />
<div class="output traceback highlight-ipythontb notranslate"><div class="highlight"><pre><span></span><span class="gt">---------------------------------------------------------------------------</span>
<span class="ne">NameError</span><span class="g g-Whitespace"> </span>Traceback (most recent call last)
<span class="n">Cell</span> <span class="n">In</span><span class="p">[</span><span class="mi">4</span><span class="p">],</span> <span class="n">line</span> <span class="mi">5</span>
<span class="g g-Whitespace"> </span><span class="mi">3</span> <span class="n">plt</span><span class="o">.</span><span class="n">title</span><span class="p">(</span><span class="s1">&#39;Heatmap of Correlation Matrix&#39;</span><span class="p">)</span>
<span class="g g-Whitespace"> </span><span class="mi">4</span> <span class="n">plt</span><span class="o">.</span><span class="n">show</span><span class="p">()</span>
<span class="ne">----&gt; </span><span class="mi">5</span> <span class="n">corr</span> <span class="o">=</span> <span class="n">data</span><span class="o">.</span><span class="n">corr</span><span class="p">()</span>
<span class="g g-Whitespace"> </span><span class="mi">6</span> <span class="n">ax</span> <span class="o">=</span> <span class="n">sns</span><span class="o">.</span><span class="n">heatmap</span><span class="p">(</span>
<span class="g g-Whitespace"> </span><span class="mi">7</span> <span class="n">corr</span><span class="p">,</span>
<span class="g g-Whitespace"> </span><span class="mi">8</span> <span class="n">vmin</span><span class="o">=-</span><span class="mi">1</span><span class="p">,</span> <span class="n">vmax</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">center</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span>
<span class="g g-Whitespace"> </span><span class="mi">9</span> <span class="n">cmap</span><span class="o">=</span><span class="n">sns</span><span class="o">.</span><span class="n">diverging_palette</span><span class="p">(</span><span class="mi">20</span><span class="p">,</span> <span class="mi">220</span><span class="p">,</span> <span class="n">n</span><span class="o">=</span><span class="mi">200</span><span class="p">),</span>
<span class="g g-Whitespace"> </span><span class="mi">10</span> <span class="n">square</span><span class="o">=</span><span class="kc">True</span>
<span class="g g-Whitespace"> </span><span class="mi">11</span> <span class="p">)</span>
<span class="g g-Whitespace"> </span><span class="mi">12</span> <span class="n">ax</span><span class="o">.</span><span class="n">set_xticklabels</span><span class="p">(</span>
<span class="g g-Whitespace"> </span><span class="mi">13</span> <span class="n">ax</span><span class="o">.</span><span class="n">get_xticklabels</span><span class="p">(),</span>
<span class="g g-Whitespace"> </span><span class="mi">14</span> <span class="n">rotation</span><span class="o">=</span><span class="mi">45</span><span class="p">,</span>
<span class="g g-Whitespace"> </span><span class="mi">15</span> <span class="n">horizontalalignment</span><span class="o">=</span><span class="s1">&#39;right&#39;</span>
<span class="g g-Whitespace"> </span><span class="mi">16</span> <span class="p">);</span>

<span class="ne">NameError</span>: name &#39;data&#39; is not defined
</pre></div>
</div>
<img alt="../_images/ac52dceae7e7f10300a6395f31343b3871b8175b9a019c7679fa520c4463e764.png" src="../_images/ac52dceae7e7f10300a6395f31343b3871b8175b9a019c7679fa520c4463e764.png" />
</div>
</div>
</section>
Expand Down
12 changes: 0 additions & 12 deletions Week_04/Lesson_17.html
Original file line number Diff line number Diff line change
Expand Up @@ -583,18 +583,6 @@ <h2>Prerequisites<a class="headerlink" href="#prerequisites" title="Permalink to
</pre></div>
</div>
</div>
<div class="cell_output docutils container">
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>/tmp/ipykernel_288689/955872667.py:2: DeprecationWarning:
Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0),
(to allow more performant data types, such as the Arrow string type, and better interoperability with other libraries)
but was not found to be installed on your system.
If this would cause problems for you,
please provide us feedback at https://github.com/pandas-dev/pandas/issues/54466

import pandas as pd
</pre></div>
</div>
</div>
</div>
</section>
<section id="deep-dive-into-central-tendency">
Expand Down
Loading

0 comments on commit beb8807

Please sign in to comment.