Skip to content

Commit 3b67676

Browse files
committed
module8+9
1 parent 33131c1 commit 3b67676

29 files changed

+4077
-9
lines changed

_quarto.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,31 @@ website:
3232
style: 'docked'
3333
background: 'primary'
3434
contents:
35-
- section: "**M0. Welcome to Programming in Python for Data Science**"
35+
- section: "**Module 8: A Slice of NumPy and Advanced Data Wrangling**"
3636
contents:
37-
- text: '0. Welcome!'
38-
href: modules/index.qmd
39-
- href: modules/module0/module0-01-programming_in_python_for_data_science.qmd
40-
- text: '   1.1. Prerequisite confirmation'
41-
href: modules/module0/module0-02-are_you_ready.qmd
42-
- section: "**M1. Python & Pandas - An Unexpected Friendship**"
37+
- href: modules/module8/module8-00-module_learning_outcomes.qmd
38+
- href: modules/module8/module8-01-numpy_and_1d_arrays.qmd
39+
- text: '   1.1. Exercises'
40+
href: modules/module8/module8-02-numpy_and_array_questions.qmd
41+
- href: modules/module8/module8-05-multi-dimensional_arrays.qmd
42+
- text: '   2.1. Exercises'
43+
href: modules/module8/module8-06-make_that_array.qmd
44+
- href: modules/module8/module8-11-working_with_null_values.qmd
45+
- text: '   3.1. Exercises'
46+
href: modules/module8/module8-12-finding_and_dropping_null_values_questions.qmd
47+
- href: modules/module8/module8-16-working_with_dates_and_time.qmd
48+
- text: '   4.1. Exercises'
49+
href: modules/module8/module8-17-datetime_quesitons.qmd
50+
- href: modules/module8/module8-19-introduction_to_working_with_strings.qmd
51+
- text: '   5.1. Exercises'
52+
href: modules/module8/module8-20-string_questions.qmd
53+
- href: modules/module8/module8-23-more_advanced_string_processing.qmd
54+
- text: '   6.1. Exercises'
55+
href: modules/module8/module8-24-advanced_string_questions.qmd
56+
- href: modules/module8/module8-27-what_did_we_just_learn.qmd
57+
- section: "**Module Closing Remarks**"
58+
contents:
59+
- href: modules/module9/module9-00-congratulations.qmd
4360

4461
# Since we are declaring options for two formats here (html and revealjs)
4562
# each qmd file needs to include a yaml block including which format to use for that file.

data/cycling_data.csv

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Date,Name,Type,Time,Distance,Comments
2+
Sep-10-2019 17:13,Afternoon Ride,Ride,2084,12.62,Rain
3+
Sep-11-2019 06:52,Morning Ride,Ride,2531,13.03,rain
4+
Sep-11-2019 17:23,Afternoon Ride,Ride,1863,12.52,Wet road but nice whether
5+
Sep-12-2019 07:06,Morning Ride,Ride,2192,12.84,Stopped for photo of sunrise
6+
Sep-12-2019 17:28,Afternoon Ride,Ride,1891,12.48,Tired by the end of the week.
7+
Sep-17-2019 06:57,Morning Ride,Ride,2272,12.45,Rested after the weekend!
8+
Sep-17-2019 17:15,Afternoon Ride,Ride,1973,12.45,Legs feeling strong!
9+
Sep-18-2019 06:43,Morning Ride,Ride,2285,12.6,Raining
10+
Sep-19-2019 06:49,Morning Ride,Ride,2903,14.57,Thankfully not raining today!
11+
Sep-18-2019 17:15,Afternoon Ride,Ride,2101,12.48,Pumped up tires
12+
Sep-19-2019 17:30,Afternoon Ride,Ride,48062,12.48,Feeling good
13+
Sep-20-2019 06:52,Morning Ride,Ride,2090,12.59,Getting colder which is nice
14+
Sep-20-2019 18:02,Afternoon Ride,Ride,2961,12.81,Feeling good
15+
Sep-24-2019 06:50,Morning Ride,Ride,2462,12.68,Rested after the weekend!
16+
Sep-24-2019 17:35,Afternoon Ride,Ride,2076,12.47,"Oiled chain, bike feels smooth"
17+
Sep-25-2019 06:41,Morning Ride,Ride,2321,12.68,Bike feeling much smoother
18+
Sep-25-2019 17:07,Afternoon Ride,Ride,1775,12.1,Feeling really tired
19+
Sep-26-2019 06:35,Morning Ride,Ride,2124,12.65,Stopped for photo of sunrise
20+
Sep-26-2019 17:13,Afternoon Ride,Ride,1860,12.52,raining
21+
Sep-27-2019 06:42,Morning Ride,Ride,2350,12.91,Detour around trucks at Jericho
22+
Sep-27-2019 18:00,Afternoon Ride,Ride,1712,12.47,Tired by the end of the week
23+
Oct-01-2019 06:53,Morning Ride,Ride,2118,12.71,Rested after the weekend!
24+
Oct-01-2019 17:15,Afternoon Ride,Ride,1732,,Legs feeling strong!
25+
Oct-02-2019 06:45,Morning Ride,Ride,2222,12.82,Beautiful morning! Feeling fit
26+
Oct-02-2019 17:13,Afternoon Ride,Ride,1756,,A little tired today but good weather
27+
Oct-03-2019 06:46,Morning Ride,Ride,2134,13.06,Bit tired today but good weather
28+
Oct-03-2019 17:45,Afternoon Ride,Ride,1724,12.52,Feeling good
29+
Oct-04-2019 06:47,Morning Ride,Ride,2182,12.68,Wet road
30+
Oct-04-2019 18:08,Afternoon Ride,Ride,1870,12.63,"Very tired, riding into the wind"
31+
Oct-10-2019 07:55,Morning Ride,Ride,2149,12.7,Really cold! But feeling good
32+
Oct-10-2019 18:10,Afternoon Ride,Ride,1841,12.59,Feeling good after a holiday break!
33+
Oct-11-2019 07:47,Morning Ride,Ride,2463,12.79,Stopped for photo of sunrise
34+
Oct-11-2019 18:16,Afternoon Ride,Ride,1843,11.79,"Bike feeling tight, needs an oil and pump"

data/cycling_data_dirty.csv

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Date,Name,Type,Time,Distance,Comments
2+
2019-09-09 7:13,Morning Ride,Ride,2084,12.62,Rain
3+
2019-09-09 20:52,Afternoon Ride,Ride,2531,13.03,rain
4+
2019-09-10 7:23,Morning Ride,Ride,1863,,Wet road but nice weather
5+
2019-09-10 21:06,Afternoon Ride,Ride,2192,12.84,Stopped for photo of sunrise
6+
2019-09-11 7:28,Morning Ride,Ride,1891,12.48,Tired by the end of the week
7+
2019-09-15 20:57,Afternoon Ride,Ride,2272,12.45,Rested after the weekend!
8+
2019-09-16 7:15,Morning Ride,Ride,1973,12.45,Legs feeling strong!
9+
2019-09-16 20:43,Afternoon Ride,Ride,2285,12.6,Raining
10+
2019-09-17 20:49,Afternoon Ride,Ride,2903,14.57,Raining today
11+
2019-09-17 7:15,Morning Ride,Ride,2101,12.48,Pumped up tires
12+
2019-09-18 7:30,Afternoon Ride,Ride,48062,12.48,Feeling good
13+
2019-09-18 20:52,Afternoon Ride,Ride,2090,12.59,Getting colder which is nice
14+
2019-09-19 8:02,Morning Ride,Ride,2961,12.81,Feeling good
15+
2019-09-22 20:50,Afternoon Ride,Ride,2462,12.68,Rested after the weekend!
16+
2019-09-23 7:35,Morning Ride,Ride,2076,12.47,"Oiled chain, bike feels smooth"
17+
2019-09-23 20:41,Afternoon Ride,Ride,2321,12.68,Bike feeling much smoother
18+
2019-09-24 7:07,Morning Ride,Ride,1775,12.1,Feeling really tired
19+
2019-09-24 20:35,Afternoon Ride,Ride,2124,12.65,Stopped for photo of sunrise
20+
2019-09-25 7:13,Morning Ride,Ride,1860,12.52,raining
21+
2019-09-25 20:42,Afternoon Ride,Ride,2350,12.91,Detour around trucks at Jericho
22+
2019-09-26 8:00,Morning Ride,Ride,1712,12.47,Tired by the end of the week
23+
2019-09-29 20:53,Afternoon Ride,Ride,2118,12.71,Rested after the weekend!
24+
2019-09-30 7:15,Morning Ride,Ride,1732,,Legs feeling strong!
25+
2019-09-30 20:45,Afternoon Ride,Ride,2222,12.82,Beautiful morning! Feeling fit
26+
2019-10-01 7:13,Morning Ride,Ride,1756,,A little tired today but good weather
27+
2019-10-01 20:46,Afternoon Ride,Ride,2134,13.06,Bit tired today but good weather
28+
2019-10-02 7:45,Morning Ride,Ride,1724,12.52,Feeling good
29+
2019-10-02 20:47,Afternoon Ride,Ride,2182,12.68,Wet road
30+
2019-10-03 8:08,Morning Ride,Ride,1870,12.63,"Very tired, riding into the wind"
31+
2019-10-08 20:55,Afternoon Ride,Ride,2149,12.7,Really cold! But feeling good
32+
2019-10-09 7:10,Morning Ride,Ride,1841,12.59,Feeling good after a holiday break!
33+
2019-10-09 20:47,Afternoon Ride,Ride,2463,12.79,Stopped for photo of sunrise
34+
2019-10-10 7:16,Morning Ride,Ride,1843,11.79,"Bike feeling tight, needs an oil and pump"

data/cycling_data_split_time.csv

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Year,Month,Day,Clock,Name,Type,Time,Distance,Comments
2+
2019,Sep,10, 17:13:04,Afternoon Ride,Ride,2084,12.62,Rain
3+
2019,Sep,11, 06:52:18,Morning Ride,Ride,2531,13.03,rain
4+
2019,Sep,11, 17:23:50,Afternoon Ride,Ride,1863,12.52,Wet road but nice weather
5+
2019,Sep,12, 07:06:19,Morning Ride,Ride,2192,12.84,Stopped for photo of sunrise
6+
2019,Sep,12, 17:28:05,Afternoon Ride,Ride,1891,12.48,Tired by the end of the week
7+
2019,Sep,17, 06:57:48,Morning Ride,Ride,2272,12.45,Rested after the weekend!
8+
2019,Sep,17, 17:15:47,Afternoon Ride,Ride,1973,12.45,Legs feeling strong!
9+
2019,Sep,18, 06:43:34,Morning Ride,Ride,2285,12.6,Raining
10+
2019,Sep,19, 06:49:53,Morning Ride,Ride,2903,14.57,Raining today
11+
2019,Sep,18, 17:15:52,Afternoon Ride,Ride,2101,12.48,Pumped up tires
12+
2019,Sep,19, 17:30:01,Afternoon Ride,Ride,48062,12.48,Feeling good
13+
2019,Sep,20, 06:52:09,Morning Ride,Ride,2090,12.59,Getting colder which is nice
14+
2019,Sep,20, 18:02:05,Afternoon Ride,Ride,2961,12.81,Feeling good
15+
2019,Sep,24, 06:50:41,Morning Ride,Ride,2462,12.68,Rested after the weekend!
16+
2019,Sep,24, 17:35:42,Afternoon Ride,Ride,2076,12.47,"Oiled chain, bike feels smooth"
17+
2019,Sep,25, 06:41:24,Morning Ride,Ride,2321,12.68,Bike feeling much smoother
18+
2019,Sep,25, 17:07:21,Afternoon Ride,Ride,1775,12.1,Feeling really tired
19+
2019,Sep,26, 06:35:41,Morning Ride,Ride,2124,12.65,Stopped for photo of sunrise
20+
2019,Sep,26, 17:13:33,Afternoon Ride,Ride,1860,12.52,raining
21+
2019,Sep,27, 06:42:43,Morning Ride,Ride,2350,12.91,Detour around trucks at Jericho
22+
2019,Sep,27, 18:00:18,Afternoon Ride,Ride,1712,12.47,Tired by the end of the week
23+
2019,Sep,1, 06:53:52,Morning Ride,Ride,2118,12.71,Rested after the weekend!
24+
2019,Oct,1, 17:15:07,Afternoon Ride,Ride,1732,NaN,Legs feeling strong!
25+
2019,Oct,2, 06:45:55,Morning Ride,Ride,2222,12.82,Beautiful morning! Feeling fit
26+
2019,Oct,2, 17:13:09,Afternoon Ride,Ride,1756,NaN,A little tired today but good weather
27+
2019,Oct,3, 06:46:06,Morning Ride,Ride,2134,13.06,Bit tired today but good weather
28+
2019,Oct,3, 17:45:22,Afternoon Ride,Ride,1724,12.52,Feeling good
29+
2019,Oct,4, 06:47:36,Morning Ride,Ride,2182,12.68,Wet road
30+
2019,Oct,4, 18:08:08,Afternoon Ride,Ride,1870,12.63,"Very tired, riding into the wind"
31+
2019,Oct,10, 07:55:40,Morning Ride,Ride,2149,12.7,Really cold! But feeling good
32+
2019,Oct,10, 18:10:31,Afternoon Ride,Ride,1841,12.59,Feeling good after a holiday break!
33+
2019,Oct,11, 07:47:14,Morning Ride,Ride,2463,12.79,Stopped for photo of sunrise
34+
2019,Oct,11, 18:16:57,Afternoon Ride,Ride,1843,11.79,"Bike feeling tight, needs an oil and pump"

environment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ channels:
55
dependencies:
66
- python>=3.11,<3.13
77
- altair-all=5.5.*
8-
- pandas=1.5.*
8+
- pandas=2.2.*
99
- scipy
1010
- matplotlib
1111
- jupyter
12-
- quarto
12+
- quarto=1.6.43
1313
- pip
1414

1515

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
format:
3+
html:
4+
page-layout: full
5+
---
6+
7+
# 0. Module Learning Outcomes
8+
9+
::: {.panel-tabset .nav-pills}
10+
11+
## Video
12+
13+
<iframe
14+
class="video"
15+
src="https://www.youtube.com/embed/SsBSqNNMAjY?start=0&end=59&rel=0"
16+
title="Module 8 Video - Module Learning Outcomes"
17+
frameborder="0"
18+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
19+
allowfullscreen
20+
></iframe>
21+
22+
## Slides
23+
24+
<iframe
25+
class="slide-deck"
26+
src="slides/module8_00.html"
27+
></iframe>
28+
29+
:::
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
format:
3+
html:
4+
page-layout: full
5+
---
6+
7+
# 1. NumPy and 1D Arrays
8+
9+
::: {.panel-tabset .nav-pills}
10+
11+
## Video
12+
13+
<iframe
14+
class="video"
15+
src="https://www.youtube.com/embed/yz6Wwa2MkQA?start=5552&end=6133&rel=0"
16+
title="Module 8 Video - NumPy and 1D Arrays"
17+
frameborder="0"
18+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
19+
allowfullscreen
20+
></iframe>
21+
22+
## Slides
23+
24+
<iframe
25+
class="slide-deck"
26+
src="slides/module8_01.html"
27+
></iframe>
28+
29+
:::

0 commit comments

Comments
 (0)