Skip to content

Commit

Permalink
week 5
Browse files Browse the repository at this point in the history
  • Loading branch information
nicucalcea committed Oct 28, 2024
1 parent e9150cd commit 0474077
Show file tree
Hide file tree
Showing 11 changed files with 256 additions and 166 deletions.
4 changes: 1 addition & 3 deletions ai/python-classification-rag.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"You will need an API key [from OpenAI](https://platform.openai.com/account/api-keys) or another provider.\n",
"\n",
"<span hidden>Get a <a href=\"https://static.globalwitness.org/openai-api-key.txt\" target=\"_blank\">temporary API key here</a>.</span>"
"You will need an API key [from OpenAI](https://platform.openai.com/account/api-keys) or another provider."
]
},
{
Expand Down
36 changes: 17 additions & 19 deletions city/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ Deliverables

- A 20-25 minute long [narrated PowerPoint presentation](https://support.microsoft.com/en-us/office/record-audio-narration-for-your-powerpoint-presentation-232d5fec-fc90-4abb-9332-c469d336d947).
- A 500-word group reflection, with appropriate references (Harvard and I suggest using Zotero as citation manager).
- Fill in [this spreadsheet](https://docs.google.com/spreadsheets/d/1_OVgO5ExbH_Xe8FOipb0LAAh4DUbMZ4RI9G3ZxgVfI0/edit#gid=0) with your name and the project you're working on.
- Fill in [this spreadsheet](https://docs.google.com/spreadsheets/d/1sqBUIQ1defxAQ-uGQAdFW6SUztwWCk_676Ynuj0HG80/edit?usp=sharing) with your name and the project you're working on.



Expand All @@ -825,9 +825,13 @@ Deliverables
- [[email protected]](mailto:[email protected])


<!-- # Week 5

Data [Stories]<br>



# Week 5

**Data Stories**<br>
<a href='https://ddj.nicu.md/city/'>https://ddj.nicu.md/city/</a>


Expand Down Expand Up @@ -914,7 +918,7 @@ Animate over time ![](media/ft/scatter-5.gif){.absolute top=100 right=20 height=
https://www.ft.com/content/e2eba288-ef83-11e6-930f-061b01e23655
:::

## FT Vocabulary
## FT Vocabulary {background-color="#ffffff"}

![](https://raw.githubusercontent.com/Financial-Times/chart-doctor/main/visual-vocabulary/poster.png){.absolute top=0 left=0 height="800"}

Expand All @@ -934,26 +938,20 @@ Source: [FT](https://github.com/Financial-Times/chart-doctor/tree/main/visual-vo

## Gapminder exercise {.smaller}

1. Make a copy of the [Gapminder data](https://www.gapminder.org/data/).
2. Working in groups, think of stories to tell based on this data.
3. What would you visualise to support your story/stories?
4. Would you look for any other datasets you can combine with this?
5. Scout out your visualisation ideas either on pen & paper, using Google Sheets charts or using a platform like [Datawrapper](https://www.datawrapper.de/) or [Flourish](https://flourish.studio/).
6. If you have time left, discuss plans for the group assignment.
1. Download the "Life expectancy" and "Fertiliy rate" (and "Population" if you want) datasets from [Gapminder](https://www.gapminder.org/data/).
2. Use `XLOOKUP` to join the datasets.
3. Reproduce Hans Rosling's chart in Google Sheets.

## Gapminder exercise
<style>.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }</style><div class='embed-container'><iframe src='https://www.gapminder.org/tools/' frameborder='0' allowfullscreen></iframe></div>

## IMDb exercise {.smaller}

TODO: Upload this somewhere so students don't have to log in
## Police crime exercise

1. Make a copy of the [IMDb data](https://www.kaggle.com/datasets/yehorkorzh/imdb-top-250-movies).
2. Working in groups, think of stories to tell based on this data.
3. What would you visualise to support your story/stories?
4. Would you look for any other datasets you can combine with this?
5. Scout out your visualisation ideas either on pen & paper, using Google Sheets charts or using a platform like [Datawrapper](https://www.datawrapper.de/) or [Flourish](https://flourish.studio/).
6. If you have time left, discuss plans for the group assignment.
1. Download the [Police recorded crime open data Police Force Area tables, year ending March 2013 onwards](https://www.gov.uk/government/statistics/police-recorded-crime-open-data-tables) table.
2. Working in groups of two, think of stories to tell based on this data.
3. Write a couple headlines based on your analysis.
4. Choose a headline and make a chart.

## Contact

Expand All @@ -962,7 +960,7 @@ TODO: Upload this somewhere so students don't have to log in

::: notes
Please make Flourish and Datawrapper accounts
::: -->
:::


<!-- # Week 6
Expand Down
1 change: 0 additions & 1 deletion docs/ai/python-classification-rag.html
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ <h2 class="anchored" data-anchor-id="install-and-load-libraries">Install and loa
<span id="cb3-9"><a href="#cb3-9" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> json</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
</div>
<p>You will need an API key <a href="https://platform.openai.com/account/api-keys">from OpenAI</a> or another provider.</p>
<p><span hidden="">Get a <a href="https://static.globalwitness.org/openai-api-key.txt" target="_blank">temporary API key here</a>.</span></p>
</section>
<section id="prep-data" class="level2">
<h2 class="anchored" data-anchor-id="prep-data">Prep data</h2>
Expand Down
Loading

0 comments on commit 0474077

Please sign in to comment.