Skip to content

Commit

Permalink
shifted some sections around
Browse files Browse the repository at this point in the history
  • Loading branch information
nicucalcea committed Oct 15, 2024
1 parent 242de9b commit 4a13197
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 89 deletions.
86 changes: 49 additions & 37 deletions city/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,36 @@ Shows percentage change.
:::


## Averages {.smaller}

::: columns
::: {.column width="50%"}
![](media/mean-median.svg){height="600"}
:::

::: {.column width="50%"}
### =MODE()

Finds the most common value in a range.

 
 

### =MEDIAN()

Finds the value that's right in the middle of a dataset.

 
 

### =AVERAGE()

Sum all the values and divide by the number of records.

:::
:::


## How did the Mail do it?

::: columns
Expand Down Expand Up @@ -533,20 +563,21 @@ Same as =XLOOKUP() but more flexible and easier to grasp.
- [[email protected]](mailto:[email protected])
- [[email protected]](mailto:[email protected])

# Week 3

<!-- Pad this week out, add more content (about 25%) -->
# Week 3

Introduction to [Data Journalism]<br>
<a href='https://ddj.nicu.md/city/'>https://ddj.nicu.md/city/</a>


## Toolbox

<iframe class="stretch" data-src="https://ddj.nicu.md/toolbox/"></iframe>
::: footer
Source: [ddj.nicu.md](https://ddj.nicu.md/toolbox/)
:::


## XLOOKUP

``` scala
Expand All @@ -555,6 +586,13 @@ Source: [ddj.nicu.md](https://ddj.nicu.md/toolbox/)

![](media/xlookup.png)


## XLOOKUP exercise

1. Make a copy of [this spreadsheet](https://docs.google.com/spreadsheets/d/1FwMl1kJGsIqKe0K0L0V-zIPh_uk9C3fqDka6A5G1CBY/copy).
2. Fill in the empty columns with formulas we learned last time.


## Pivot Tables {.smaller}

Pivot tables are extra tables in your spreadsheet, in which you can summarise data from your original table.
Expand All @@ -563,6 +601,15 @@ You can calculate averages, counts, max/min values or sums for numbers in a grou

![](media/pivot-recipe.png)


## Pivot table exercise

1. Make a copy of [this spreadsheet](https://docs.google.com/spreadsheets/d/1-Jk4Zo5pTgGwXIeBEgzxn00IBjrxlxbmuf-ICW-4Am8/copy).
2. <iframe src="https://giphy.com/embed/oCjCwnuLpiWbfMb1UA" width="480" height="270" frameBorder="0" class="giphy-embed" allowFullScreen></iframe>

Bonus points: Grab a CSV from [police.uk](https://data.police.uk/data/) and do it yourself.


## Averages {.smaller}

::: columns
Expand Down Expand Up @@ -592,20 +639,6 @@ Sum all the values and divide by the number of records.
:::
:::

## XLOOKUP exercise

1. Make a copy of [this spreadsheet](https://docs.google.com/spreadsheets/d/1FwMl1kJGsIqKe0K0L0V-zIPh_uk9C3fqDka6A5G1CBY/copy).
2. Fill in the empty columns with formulas we learned last time.

## Pivot table exercise

1. Make a copy of [this spreadsheet](https://docs.google.com/spreadsheets/d/1-Jk4Zo5pTgGwXIeBEgzxn00IBjrxlxbmuf-ICW-4Am8/copy).
2. <iframe src="https://giphy.com/embed/oCjCwnuLpiWbfMb1UA" width="480" height="270" frameBorder="0" class="giphy-embed" allowFullScreen></iframe>

Bonus points: Grab a CSV from [police.uk](https://data.police.uk/data/) and do it yourself.

::: notes
:::

## Contact

Expand Down Expand Up @@ -808,27 +841,6 @@ Data [Stories]<br>
<a href='https://ddj.nicu.md/city/'>https://ddj.nicu.md/city/</a>
## 30-day challenge (Erwan) {fullscreen=true}
![](https://blog.datawrapper.de/wp-content/uploads/2023/11/F-MswaAW0AAwFRP.jpeg){.absolute height="600"}
::: footer
Source: [Erwan Rivault](https://twitter.com/ErwanRivault/status/1721275486687433026/photo/1)
:::
## 30-day challenge (Jana) {fullscreen=true}
![](https://blog.datawrapper.de/wp-content/uploads/2023/11/F-G8R9ZW0AAso94.jpeg){.absolute height="600"}
::: footer
Source: [Jana Tauschinski](https://twitter.com/ErwanRivault/status/1721275486687433026/photo/1)
:::
## {fullscreen=true}
![](https://blog.datawrapper.de/wp-content/uploads/2023/11/image6.png){.absolute height="700"}
::: footer
Source: [FT](https://www.ft.com/content/ed739236-7430-4dc1-95f5-4a23534d8841)
:::
## Why do we visualise data? {background-color="#e9e9e9"}
Summarising data, like we did in previous lessons, is not always enough to reveal pattern or trends.
Expand Down
76 changes: 39 additions & 37 deletions docs/city/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,22 @@ <h5 id="new-oldold">[=(NEW-OLD)/OLD]</h5>
<p>Shows percentage change.</p>
</div></div>
</section>
<section id="averages" class="slide level2 smaller">
<h2>Averages</h2>
<div class="columns">
<div class="column" style="width:50%;">
<p><img data-src="media/mean-median.svg" height="600"></p>
</div><div class="column" style="width:50%;">
<h3 id="mode">=MODE()</h3>
<p>Finds the most common value in a range.</p>
<p>&nbsp; &nbsp;</p>
<h3 id="median-1">=MEDIAN()</h3>
<p>Finds the value that’s right in the middle of a dataset.</p>
<p>&nbsp; &nbsp;</p>
<h3 id="average-1">=AVERAGE()</h3>
<p>Sum all the values and divide by the number of records.</p>
</div></div>
</section>
<section id="how-did-the-mail-do-it" class="slide level2">
<h2>How did the Mail do it?</h2>
<div class="columns">
Expand Down Expand Up @@ -922,10 +938,10 @@ <h5 id="a1b1-1">[=A1/B$1]</h5>
<h5 id="sum-1">[=SUM()]</h5>
<p>Returns the sum of a series of numbers and/or cells.</p>
</div><div class="column" style="width:33.33%;">
<h5 id="average-1"><a href="#/averages" target="_blank">=AVERAGE()</a></h5>
<h5 id="average-2"><a href="#/averages" target="_blank">=AVERAGE()</a></h5>
<p>Returns the numerical average value in a dataset, ignoring text.</p>
</div><div class="column" style="width:33.33%;">
<h5 id="median-1"><a href="#/averages" target="_blank">=MEDIAN()</a></h5>
<h5 id="median-2"><a href="#/averages" target="_blank">=MEDIAN()</a></h5>
<p>Returns the median value in a numeric dataset.</p>
</div><div class="column" style="width:33.33%;">
<h5 id="new-oldold-1">[=(NEW-OLD)/OLD]</h5>
Expand Down Expand Up @@ -965,7 +981,6 @@ <h2>Contact</h2>
<section>
<section id="week-3" class="title-slide slide level1 center">
<h1>Week 3</h1>
<!-- Pad this week out, add more content (about 25%) -->
<p>Introduction to [Data Journalism]<br> <a href="https://ddj.nicu.md/city/">https://ddj.nicu.md/city/</a></p>
</section>
<section id="toolbox" class="slide level2">
Expand All @@ -981,57 +996,44 @@ <h2>XLOOKUP</h2>
<div class="sourceCode" id="cb1"><pre class="sourceCode numberSource scala number-lines code-with-copy"><code class="sourceCode scala"><span id="cb1-1"><a></a><span class="op">=</span><span class="fu">XLOOKUP</span><span class="op">(</span>search_term<span class="op">,</span> col_to_search<span class="op">,</span> col_to_return<span class="op">)</span></span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>

<img data-src="media/xlookup.png" class="r-stretch"></section>
<section id="xlookup-exercise" class="slide level2">
<h2>XLOOKUP exercise</h2>
<ol type="1">
<li>Make a copy of <a href="https://docs.google.com/spreadsheets/d/1FwMl1kJGsIqKe0K0L0V-zIPh_uk9C3fqDka6A5G1CBY/copy" target="_blank">this spreadsheet</a>.</li>
<li>Fill in the empty columns with formulas we learned last time.</li>
</ol>
</section>
<section id="pivot-tables" class="slide level2 smaller">
<h2>Pivot Tables</h2>
<p>Pivot tables are extra tables in your spreadsheet, in which you can summarise data from your original table.</p>
<p>You can calculate averages, counts, max/min values or sums for numbers in a group.</p>

<img data-src="media/pivot-recipe.png" class="r-stretch"></section>
<section id="averages" class="slide level2 smaller">
<section id="pivot-table-exercise" class="slide level2">
<h2>Pivot table exercise</h2>
<ol type="1">
<li>Make a copy of <a href="https://docs.google.com/spreadsheets/d/1-Jk4Zo5pTgGwXIeBEgzxn00IBjrxlxbmuf-ICW-4Am8/copy" target="_blank">this spreadsheet</a>.</li>
<li><iframe src="https://giphy.com/embed/oCjCwnuLpiWbfMb1UA" width="480" height="270" frameborder="0" class="giphy-embed" allowfullscreen="">
</iframe></li>
</ol>
<p>Bonus points: Grab a CSV from <a href="https://data.police.uk/data/" target="_blank">police.uk</a> and do it yourself.</p>
</section>
<section id="averages-1" class="slide level2 smaller">
<h2>Averages</h2>
<div class="columns">
<div class="column" style="width:50%;">
<p><img data-src="media/mean-median.svg" height="600"></p>
</div><div class="column" style="width:50%;">
<h3 id="mode">=MODE()</h3>
<h3 id="mode-1">=MODE()</h3>
<p>Finds the most common value in a range.</p>
<p>&nbsp; &nbsp;</p>
<h3 id="median-2">=MEDIAN()</h3>
<h3 id="median-3">=MEDIAN()</h3>
<p>Finds the value that’s right in the middle of a dataset.</p>
<p>&nbsp; &nbsp;</p>
<h3 id="average-2">=AVERAGE()</h3>
<h3 id="average-3">=AVERAGE()</h3>
<p>Sum all the values and divide by the number of records.</p>
</div></div>
</section>
<section id="xlookup-exercise" class="slide level2">
<h2>XLOOKUP exercise</h2>
<ol type="1">
<li>Make a copy of <a href="https://docs.google.com/spreadsheets/d/1FwMl1kJGsIqKe0K0L0V-zIPh_uk9C3fqDka6A5G1CBY/copy" target="_blank">this spreadsheet</a>.</li>
<li>Fill in the empty columns with formulas we learned last time.</li>
</ol>
</section>
<section id="pivot-table-exercise" class="slide level2">
<h2>Pivot table exercise</h2>
<ol type="1">
<li>Make a copy of <a href="https://docs.google.com/spreadsheets/d/1-Jk4Zo5pTgGwXIeBEgzxn00IBjrxlxbmuf-ICW-4Am8/copy" target="_blank">this spreadsheet</a>.</li>
<li><iframe src="https://giphy.com/embed/oCjCwnuLpiWbfMb1UA" width="480" height="270" frameborder="0" class="giphy-embed" allowfullscreen="">
</iframe></li>
</ol>
<p>Bonus points: Grab a CSV from <a href="https://data.police.uk/data/" target="_blank">police.uk</a> and do it yourself.</p>
<aside class="notes">

<style type="text/css">
span.MJX_Assistive_MathML {
position:absolute!important;
clip: rect(1px, 1px, 1px, 1px);
padding: 1px 0 0 0!important;
border: 0!important;
height: 1px!important;
width: 1px!important;
overflow: hidden!important;
display:block!important;
}</style></aside>
</section>
<section id="contact-2" class="slide level2">
<h2>Contact</h2>
<ul>
Expand Down Expand Up @@ -2163,7 +2165,7 @@ <h2>Contact</h2>
'autoAnimateUnmatched': true,
'menu': {"side":"left","useTextContentForMissingTitles":true,"markers":false,"loadIcons":false,"custom":[{"title":"Tools","icon":"<i class=\"fas fa-gear\"></i>","content":"<ul class=\"slide-menu-items\">\n<li class=\"slide-tool-item active\" data-item=\"0\"><a href=\"#\" onclick=\"RevealMenuToolHandlers.fullscreen(event)\"><kbd>f</kbd> Fullscreen</a></li>\n<li class=\"slide-tool-item\" data-item=\"1\"><a href=\"#\" onclick=\"RevealMenuToolHandlers.speakerMode(event)\"><kbd>s</kbd> Speaker View</a></li>\n<li class=\"slide-tool-item\" data-item=\"2\"><a href=\"#\" onclick=\"RevealMenuToolHandlers.overview(event)\"><kbd>o</kbd> Slide Overview</a></li>\n<li class=\"slide-tool-item\" data-item=\"3\"><a href=\"#\" onclick=\"RevealMenuToolHandlers.togglePdfExport(event)\"><kbd>e</kbd> PDF Export Mode</a></li>\n<li class=\"slide-tool-item\" data-item=\"4\"><a href=\"#\" onclick=\"RevealMenuToolHandlers.toggleChalkboard(event)\"><kbd>b</kbd> Toggle Chalkboard</a></li>\n<li class=\"slide-tool-item\" data-item=\"5\"><a href=\"#\" onclick=\"RevealMenuToolHandlers.toggleNotesCanvas(event)\"><kbd>c</kbd> Toggle Notes Canvas</a></li>\n<li class=\"slide-tool-item\" data-item=\"6\"><a href=\"#\" onclick=\"RevealMenuToolHandlers.downloadDrawings(event)\"><kbd>d</kbd> Download Drawings</a></li>\n<li class=\"slide-tool-item\" data-item=\"7\"><a href=\"#\" onclick=\"RevealMenuToolHandlers.keyboardHelp(event)\"><kbd>?</kbd> Keyboard Help</a></li>\n</ul>"}],"openButton":true},
'chalkboard': {"buttons":false},
'multiplex': {"secret":null,"id":"89b9c27c037a8fa0","url":"https://reveal-multiplex.glitch.me/"},
'multiplex': {"secret":null,"id":"1deeebffbf7f704f","url":"https://reveal-multiplex.glitch.me/"},
'smaller': false,

// Display controls in the bottom right corner
Expand Down
35 changes: 21 additions & 14 deletions docs/search.json
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,13 @@
"section": "",
"text": "[=A1+A2]\nReturns one number added (+) or subtracting (*) another.\n\n[=A1/B$1]\nReturns one number divided (/) or multiplied (*) by another.\n\n[=SUM()]\nReturns the sum of a series of numbers and/or cells.\n\n=AVERAGE()\nReturns the numerical average value in a dataset, ignoring text.\n\n=MEDIAN()\nReturns the median value in a numeric dataset.\n\n[=(NEW-OLD)/OLD]\nShows percentage change."
},
{
"objectID": "city/index.html#averages",
"href": "city/index.html#averages",
"title": "Intro to Data Journalism",
"section": "Averages",
"text": "Averages\n\n\n\n\n=MODE()\nFinds the most common value in a range.\n   \n=MEDIAN()\nFinds the value that’s right in the middle of a dataset.\n   \n=AVERAGE()\nSum all the values and divide by the number of records."
},
{
"objectID": "city/index.html#how-did-the-mail-do-it",
"href": "city/index.html#how-did-the-mail-do-it",
Expand Down Expand Up @@ -529,34 +536,34 @@
"section": "XLOOKUP",
"text": "XLOOKUP\n=XLOOKUP(search_term, col_to_search, col_to_return)"
},
{
"objectID": "city/index.html#pivot-tables",
"href": "city/index.html#pivot-tables",
"title": "Intro to Data Journalism",
"section": "Pivot Tables",
"text": "Pivot Tables\nPivot tables are extra tables in your spreadsheet, in which you can summarise data from your original table.\nYou can calculate averages, counts, max/min values or sums for numbers in a group."
},
{
"objectID": "city/index.html#averages",
"href": "city/index.html#averages",
"title": "Intro to Data Journalism",
"section": "Averages",
"text": "Averages\n\n\n\n\n=MODE()\nFinds the most common value in a range.\n   \n=MEDIAN()\nFinds the value that’s right in the middle of a dataset.\n   \n=AVERAGE()\nSum all the values and divide by the number of records."
},
{
"objectID": "city/index.html#xlookup-exercise",
"href": "city/index.html#xlookup-exercise",
"title": "Intro to Data Journalism",
"section": "XLOOKUP exercise",
"text": "XLOOKUP exercise\n\nMake a copy of this spreadsheet.\nFill in the empty columns with formulas we learned last time."
},
{
"objectID": "city/index.html#pivot-tables",
"href": "city/index.html#pivot-tables",
"title": "Intro to Data Journalism",
"section": "Pivot Tables",
"text": "Pivot Tables\nPivot tables are extra tables in your spreadsheet, in which you can summarise data from your original table.\nYou can calculate averages, counts, max/min values or sums for numbers in a group."
},
{
"objectID": "city/index.html#pivot-table-exercise",
"href": "city/index.html#pivot-table-exercise",
"title": "Intro to Data Journalism",
"section": "Pivot table exercise",
"text": "Pivot table exercise\n\nMake a copy of this spreadsheet.\n\n\n\nBonus points: Grab a CSV from police.uk and do it yourself."
},
{
"objectID": "city/index.html#averages-1",
"href": "city/index.html#averages-1",
"title": "Intro to Data Journalism",
"section": "Averages",
"text": "Averages\n\n\n\n\n=MODE()\nFinds the most common value in a range.\n   \n=MEDIAN()\nFinds the value that’s right in the middle of a dataset.\n   \n=AVERAGE()\nSum all the values and divide by the number of records."
},
{
"objectID": "city/index.html#contact-2",
"href": "city/index.html#contact-2",
Expand Down
2 changes: 1 addition & 1 deletion docs/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
</url>
<url>
<loc>https://ddj.nicu.md/city/index.html</loc>
<lastmod>2024-10-15T20:47:44.977Z</lastmod>
<lastmod>2024-10-15T21:01:57.748Z</lastmod>
</url>
<url>
<loc>https://ddj.nicu.md/sources/academic.html</loc>
Expand Down

0 comments on commit 4a13197

Please sign in to comment.