|
1531 | 1531 | },
|
1532 | 1532 | {
|
1533 | 1533 | "cell_type": "code",
|
1534 |
| - "execution_count": 1, |
| 1534 | + "execution_count": 6, |
1535 | 1535 | "id": "007f7a76-d99f-4f8c-a729-d26022fd6ca5",
|
1536 | 1536 | "metadata": {
|
1537 | 1537 | "editable": true,
|
|
1546 | 1546 | {
|
1547 | 1547 | "data": {
|
1548 | 1548 | "text/html": [
|
1549 |
| - "<div id=\"jDekxSutJzVz\" data-shufflequestions=\"False\"\n", |
| 1549 | + "<div id=\"rDMoONLcdwOO\" data-shufflequestions=\"False\"\n", |
1550 | 1550 | " data-shuffleanswers=\"True\"\n",
|
1551 | 1551 | " data-preserveresponses=\"false\"\n",
|
1552 | 1552 | " data-numquestions=\"1000000\"\n",
|
1553 | 1553 | " data-maxwidth=\"600\"\n",
|
1554 | 1554 | " style=\"border-radius: 10px; text-align: left\"> <style>\n",
|
1555 |
| - "#jDekxSutJzVz {\n", |
| 1555 | + "#rDMoONLcdwOO {\n", |
1556 | 1556 | " --jq-multiple-choice-bg: #6f78ffff;\n",
|
1557 | 1557 | " --jq-mc-button-bg: #fafafa;\n",
|
1558 | 1558 | " --jq-mc-button-border: #e0e0e0e0;\n",
|
|
1734 | 1734 | {
|
1735 | 1735 | "data": {
|
1736 | 1736 | "application/javascript": [
|
1737 |
| - "var questionsjDekxSutJzVz=[\n", |
| 1737 | + "var questionsrDMoONLcdwOO=[\n", |
1738 | 1738 | " {\n",
|
1739 | 1739 | " \"question\": \"Enter the number of rows that are within the dataframe\",\n",
|
1740 |
| - " \"type\": \"numeric\",\n", |
1741 |
| - " \"precision\":1,\n", |
| 1740 | + " \"type\": \"many_choice\",\n", |
1742 | 1741 | " \"answers\": [\n",
|
1743 | 1742 | " {\n",
|
1744 |
| - " \"type\": \"value\",\n", |
1745 |
| - " \"value\": 32832,\n", |
| 1743 | + " \"answer\": \"32832\",\n", |
1746 | 1744 | " \"correct\": true,\n",
|
1747 | 1745 | " \"feedback\": \"Correct.\"\n",
|
1748 | 1746 | " },\n",
|
1749 | 1747 | " {\n",
|
1750 |
| - " \"type\": \"value\",\n", |
1751 |
| - " \"value\": 8,\n", |
| 1748 | + " \"answer\": \"8\",\n", |
1752 | 1749 | " \"correct\": false,\n",
|
1753 | 1750 | " \"feedback\": \"Thats the number of columns!\"\n",
|
1754 |
| - " },\n", |
1755 |
| - " {\n", |
1756 |
| - " \"type\": \"default\",\n", |
1757 |
| - " \"feedback\": \"Thats not quite right, try again!\"\n", |
1758 | 1751 | " }\n",
|
1759 | 1752 | " ]\n",
|
1760 | 1753 | " }\n",
|
|
2507 | 2500 | " Someone more knowledgeable could make this better ;-) */\n",
|
2508 | 2501 | "\n",
|
2509 | 2502 | " function try_show() {\n",
|
2510 |
| - " if(document.getElementById(\"jDekxSutJzVz\")) {\n", |
2511 |
| - " show_questions(questionsjDekxSutJzVz, jDekxSutJzVz); \n", |
| 2503 | + " if(document.getElementById(\"rDMoONLcdwOO\")) {\n", |
| 2504 | + " show_questions(questionsrDMoONLcdwOO, rDMoONLcdwOO); \n", |
2512 | 2505 | " } else {\n",
|
2513 | 2506 | " setTimeout(try_show, 200);\n",
|
2514 | 2507 | " }\n",
|
|
2517 | 2510 | " {\n",
|
2518 | 2511 | " // console.log(element);\n",
|
2519 | 2512 | "\n",
|
2520 |
| - " //console.log(\"jDekxSutJzVz\");\n", |
2521 |
| - " // console.log(document.getElementById(\"jDekxSutJzVz\"));\n", |
| 2513 | + " //console.log(\"rDMoONLcdwOO\");\n", |
| 2514 | + " // console.log(document.getElementById(\"rDMoONLcdwOO\"));\n", |
2522 | 2515 | "\n",
|
2523 | 2516 | " try_show();\n",
|
2524 | 2517 | " }\n",
|
|
2541 | 2534 | "cell_type": "code",
|
2542 | 2535 | "execution_count": 12,
|
2543 | 2536 | "id": "7d05b94e-c3da-42ef-904f-f470cb9d21c4",
|
2544 |
| - "metadata": {}, |
| 2537 | + "metadata": { |
| 2538 | + "editable": true, |
| 2539 | + "slideshow": { |
| 2540 | + "slide_type": "" |
| 2541 | + }, |
| 2542 | + "tags": [] |
| 2543 | + }, |
2545 | 2544 | "outputs": [
|
2546 | 2545 | {
|
2547 | 2546 | "data": {
|
|
2856 | 2855 | {
|
2857 | 2856 | "cell_type": "markdown",
|
2858 | 2857 | "id": "535b8e63-f7c9-4295-9f07-34eb9d4c12fa",
|
2859 |
| - "metadata": {}, |
| 2858 | + "metadata": { |
| 2859 | + "editable": true, |
| 2860 | + "slideshow": { |
| 2861 | + "slide_type": "" |
| 2862 | + }, |
| 2863 | + "tags": [] |
| 2864 | + }, |
2860 | 2865 | "source": [
|
2861 | 2866 | "### Performing Analysis \n",
|
2862 | 2867 | "\n",
|
|
3022 | 3027 | "source": [
|
3023 | 3028 | "#### Exercise 3 - Subsetting Data\n",
|
3024 | 3029 | "* The analysis that was performed before was on the complete dataset. \n",
|
3025 |
| - "* You have been given code to filter the dataset to retrieve the data that was measured in 2022.\n", |
3026 | 3030 | "* Adapt the code given to get the data from 2023.\n",
|
3027 | 3031 | "* For the data from 2023 determine: \n",
|
3028 | 3032 | " * What was the maximum air pollution seen for NO2 air pollution?\n",
|
|
0 commit comments