From 4a1319723826d30f36e617237126afff090cc602 Mon Sep 17 00:00:00 2001 From: nicucalcea Date: Tue, 15 Oct 2024 22:17:20 +0100 Subject: [PATCH] shifted some sections around --- city/index.qmd | 86 +++++++++++++++++++++++++------------------- docs/city/index.html | 76 ++++++++++++++++++++------------------- docs/search.json | 35 ++++++++++-------- docs/sitemap.xml | 2 +- 4 files changed, 110 insertions(+), 89 deletions(-) diff --git a/city/index.qmd b/city/index.qmd index 9b94119..c171160 100644 --- a/city/index.qmd +++ b/city/index.qmd @@ -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 @@ -533,13 +563,13 @@ Same as =XLOOKUP() but more flexible and easier to grasp. - [Ion.Calcea.2@city.ac.uk](mailto:ion.calcea.2@city.ac.uk) - [James.Morris@city.ac.uk](mailto:James.Morris@city.ac.uk) -# Week 3 - +# Week 3 Introduction to [Data Journalism]
https://ddj.nicu.md/city/ + ## Toolbox @@ -547,6 +577,7 @@ Introduction to [Data Journalism]
Source: [ddj.nicu.md](https://ddj.nicu.md/toolbox/) ::: + ## XLOOKUP ``` scala @@ -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. @@ -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. + +Bonus points: Grab a CSV from [police.uk](https://data.police.uk/data/) and do it yourself. + + ## Averages {.smaller} ::: columns @@ -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. - -Bonus points: Grab a CSV from [police.uk](https://data.police.uk/data/) and do it yourself. - -::: notes -::: ## Contact @@ -808,27 +841,6 @@ Data [Stories]
https://ddj.nicu.md/city/ -## 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. diff --git a/docs/city/index.html b/docs/city/index.html index c9b74a7..8a27129 100644 --- a/docs/city/index.html +++ b/docs/city/index.html @@ -733,6 +733,22 @@
[=(NEW-OLD)/OLD]

Shows percentage change.

+
+

Averages

+
+
+

+
+

=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?

@@ -922,10 +938,10 @@
[=A1/B$1]
[=SUM()]

Returns the sum of a series of numbers and/or cells.

-
=AVERAGE()
+
=AVERAGE()

Returns the numerical average value in a dataset, ignoring text.

-
=MEDIAN()
+
=MEDIAN()

Returns the median value in a numeric dataset.

[=(NEW-OLD)/OLD]
@@ -965,7 +981,6 @@

Contact

Week 3

-

Introduction to [Data Journalism]
https://ddj.nicu.md/city/

@@ -981,57 +996,44 @@

XLOOKUP

=XLOOKUP(search_term, col_to_search, col_to_return)
+
+

XLOOKUP exercise

+
    +
  1. Make a copy of this spreadsheet.
  2. +
  3. Fill in the empty columns with formulas we learned last time.
  4. +
+

Pivot Tables

Pivot tables are extra tables in your spreadsheet, in which you can summarise data from your original table.

You can calculate averages, counts, max/min values or sums for numbers in a group.

-
+
+

Pivot table exercise

+
    +
  1. Make a copy of this spreadsheet.
  2. +
  3. +
+

Bonus points: Grab a CSV from police.uk and do it yourself.

+
+

Averages

-

=MODE()

+

=MODE()

Finds the most common value in a range.

   

-

=MEDIAN()

+

=MEDIAN()

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

   

-

=AVERAGE()

+

=AVERAGE()

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

-
-

XLOOKUP exercise

-
    -
  1. Make a copy of this spreadsheet.
  2. -
  3. Fill in the empty columns with formulas we learned last time.
  4. -
-
-
-

Pivot table exercise

-
    -
  1. Make a copy of this spreadsheet.
  2. -
  3. -
-

Bonus points: Grab a CSV from police.uk and do it yourself.

- -

Contact

    @@ -2163,7 +2165,7 @@

    Contact

    'autoAnimateUnmatched': true, 'menu': {"side":"left","useTextContentForMissingTitles":true,"markers":false,"loadIcons":false,"custom":[{"title":"Tools","icon":"","content":""}],"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 diff --git a/docs/search.json b/docs/search.json index ea780e8..661d381 100644 --- a/docs/search.json +++ b/docs/search.json @@ -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", @@ -529,20 +536,6 @@ "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", @@ -550,6 +543,13 @@ "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", @@ -557,6 +557,13 @@ "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", diff --git a/docs/sitemap.xml b/docs/sitemap.xml index a547ec1..5a0d5c6 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -38,7 +38,7 @@ https://ddj.nicu.md/city/index.html - 2024-10-15T20:47:44.977Z + 2024-10-15T21:01:57.748Z https://ddj.nicu.md/sources/academic.html