Skip to content

Quarto mod8 mod9 #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,31 @@ website:
- text: '   12.1. Exercises'
href: modules/module1/module1-32-practicing_bar_charts.qmd
- href: modules/module1/module1-34-what_did_we_just_learn.qmd
- section: "**Module 8: A Slice of NumPy and Advanced Data Wrangling**"
contents:
- href: modules/module8/module8-00-module_learning_outcomes.qmd
- href: modules/module8/module8-01-numpy_and_1d_arrays.qmd
- text: '   1.1. Exercises'
href: modules/module8/module8-02-numpy_and_array_questions.qmd
- href: modules/module8/module8-05-multi-dimensional_arrays.qmd
- text: '   2.1. Exercises'
href: modules/module8/module8-06-make_that_array.qmd
- href: modules/module8/module8-11-working_with_null_values.qmd
- text: '   3.1. Exercises'
href: modules/module8/module8-12-finding_and_dropping_null_values_questions.qmd
- href: modules/module8/module8-16-working_with_dates_and_time.qmd
- text: '   4.1. Exercises'
href: modules/module8/module8-17-datetime_quesitons.qmd
- href: modules/module8/module8-19-introduction_to_working_with_strings.qmd
- text: '   5.1. Exercises'
href: modules/module8/module8-20-string_questions.qmd
- href: modules/module8/module8-23-more_advanced_string_processing.qmd
- text: '   6.1. Exercises'
href: modules/module8/module8-24-advanced_string_questions.qmd
- href: modules/module8/module8-27-what_did_we_just_learn.qmd
- section: "**Module Closing Remarks**"
contents:
- href: modules/module9/module9-00-congratulations.qmd

# Since we are declaring options for two formats here (html and revealjs)
# each qmd file needs to include a yaml block including which format to use for that file.
Expand Down
34 changes: 34 additions & 0 deletions data/cycling_data.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Date,Name,Type,Time,Distance,Comments
Sep-10-2019 17:13,Afternoon Ride,Ride,2084,12.62,Rain
Sep-11-2019 06:52,Morning Ride,Ride,2531,13.03,rain
Sep-11-2019 17:23,Afternoon Ride,Ride,1863,12.52,Wet road but nice whether
Sep-12-2019 07:06,Morning Ride,Ride,2192,12.84,Stopped for photo of sunrise
Sep-12-2019 17:28,Afternoon Ride,Ride,1891,12.48,Tired by the end of the week.
Sep-17-2019 06:57,Morning Ride,Ride,2272,12.45,Rested after the weekend!
Sep-17-2019 17:15,Afternoon Ride,Ride,1973,12.45,Legs feeling strong!
Sep-18-2019 06:43,Morning Ride,Ride,2285,12.6,Raining
Sep-19-2019 06:49,Morning Ride,Ride,2903,14.57,Thankfully not raining today!
Sep-18-2019 17:15,Afternoon Ride,Ride,2101,12.48,Pumped up tires
Sep-19-2019 17:30,Afternoon Ride,Ride,48062,12.48,Feeling good
Sep-20-2019 06:52,Morning Ride,Ride,2090,12.59,Getting colder which is nice
Sep-20-2019 18:02,Afternoon Ride,Ride,2961,12.81,Feeling good
Sep-24-2019 06:50,Morning Ride,Ride,2462,12.68,Rested after the weekend!
Sep-24-2019 17:35,Afternoon Ride,Ride,2076,12.47,"Oiled chain, bike feels smooth"
Sep-25-2019 06:41,Morning Ride,Ride,2321,12.68,Bike feeling much smoother
Sep-25-2019 17:07,Afternoon Ride,Ride,1775,12.1,Feeling really tired
Sep-26-2019 06:35,Morning Ride,Ride,2124,12.65,Stopped for photo of sunrise
Sep-26-2019 17:13,Afternoon Ride,Ride,1860,12.52,raining
Sep-27-2019 06:42,Morning Ride,Ride,2350,12.91,Detour around trucks at Jericho
Sep-27-2019 18:00,Afternoon Ride,Ride,1712,12.47,Tired by the end of the week
Oct-01-2019 06:53,Morning Ride,Ride,2118,12.71,Rested after the weekend!
Oct-01-2019 17:15,Afternoon Ride,Ride,1732,,Legs feeling strong!
Oct-02-2019 06:45,Morning Ride,Ride,2222,12.82,Beautiful morning! Feeling fit
Oct-02-2019 17:13,Afternoon Ride,Ride,1756,,A little tired today but good weather
Oct-03-2019 06:46,Morning Ride,Ride,2134,13.06,Bit tired today but good weather
Oct-03-2019 17:45,Afternoon Ride,Ride,1724,12.52,Feeling good
Oct-04-2019 06:47,Morning Ride,Ride,2182,12.68,Wet road
Oct-04-2019 18:08,Afternoon Ride,Ride,1870,12.63,"Very tired, riding into the wind"
Oct-10-2019 07:55,Morning Ride,Ride,2149,12.7,Really cold! But feeling good
Oct-10-2019 18:10,Afternoon Ride,Ride,1841,12.59,Feeling good after a holiday break!
Oct-11-2019 07:47,Morning Ride,Ride,2463,12.79,Stopped for photo of sunrise
Oct-11-2019 18:16,Afternoon Ride,Ride,1843,11.79,"Bike feeling tight, needs an oil and pump"
34 changes: 34 additions & 0 deletions data/cycling_data_dirty.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Date,Name,Type,Time,Distance,Comments
2019-09-09 7:13,Morning Ride,Ride,2084,12.62,Rain
2019-09-09 20:52,Afternoon Ride,Ride,2531,13.03,rain
2019-09-10 7:23,Morning Ride,Ride,1863,,Wet road but nice weather
2019-09-10 21:06,Afternoon Ride,Ride,2192,12.84,Stopped for photo of sunrise
2019-09-11 7:28,Morning Ride,Ride,1891,12.48,Tired by the end of the week
2019-09-15 20:57,Afternoon Ride,Ride,2272,12.45,Rested after the weekend!
2019-09-16 7:15,Morning Ride,Ride,1973,12.45,Legs feeling strong!
2019-09-16 20:43,Afternoon Ride,Ride,2285,12.6,Raining
2019-09-17 20:49,Afternoon Ride,Ride,2903,14.57,Raining today
2019-09-17 7:15,Morning Ride,Ride,2101,12.48,Pumped up tires
2019-09-18 7:30,Afternoon Ride,Ride,48062,12.48,Feeling good
2019-09-18 20:52,Afternoon Ride,Ride,2090,12.59,Getting colder which is nice
2019-09-19 8:02,Morning Ride,Ride,2961,12.81,Feeling good
2019-09-22 20:50,Afternoon Ride,Ride,2462,12.68,Rested after the weekend!
2019-09-23 7:35,Morning Ride,Ride,2076,12.47,"Oiled chain, bike feels smooth"
2019-09-23 20:41,Afternoon Ride,Ride,2321,12.68,Bike feeling much smoother
2019-09-24 7:07,Morning Ride,Ride,1775,12.1,Feeling really tired
2019-09-24 20:35,Afternoon Ride,Ride,2124,12.65,Stopped for photo of sunrise
2019-09-25 7:13,Morning Ride,Ride,1860,12.52,raining
2019-09-25 20:42,Afternoon Ride,Ride,2350,12.91,Detour around trucks at Jericho
2019-09-26 8:00,Morning Ride,Ride,1712,12.47,Tired by the end of the week
2019-09-29 20:53,Afternoon Ride,Ride,2118,12.71,Rested after the weekend!
2019-09-30 7:15,Morning Ride,Ride,1732,,Legs feeling strong!
2019-09-30 20:45,Afternoon Ride,Ride,2222,12.82,Beautiful morning! Feeling fit
2019-10-01 7:13,Morning Ride,Ride,1756,,A little tired today but good weather
2019-10-01 20:46,Afternoon Ride,Ride,2134,13.06,Bit tired today but good weather
2019-10-02 7:45,Morning Ride,Ride,1724,12.52,Feeling good
2019-10-02 20:47,Afternoon Ride,Ride,2182,12.68,Wet road
2019-10-03 8:08,Morning Ride,Ride,1870,12.63,"Very tired, riding into the wind"
2019-10-08 20:55,Afternoon Ride,Ride,2149,12.7,Really cold! But feeling good
2019-10-09 7:10,Morning Ride,Ride,1841,12.59,Feeling good after a holiday break!
2019-10-09 20:47,Afternoon Ride,Ride,2463,12.79,Stopped for photo of sunrise
2019-10-10 7:16,Morning Ride,Ride,1843,11.79,"Bike feeling tight, needs an oil and pump"
34 changes: 34 additions & 0 deletions data/cycling_data_split_time.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Year,Month,Day,Clock,Name,Type,Time,Distance,Comments
2019,Sep,10, 17:13:04,Afternoon Ride,Ride,2084,12.62,Rain
2019,Sep,11, 06:52:18,Morning Ride,Ride,2531,13.03,rain
2019,Sep,11, 17:23:50,Afternoon Ride,Ride,1863,12.52,Wet road but nice weather
2019,Sep,12, 07:06:19,Morning Ride,Ride,2192,12.84,Stopped for photo of sunrise
2019,Sep,12, 17:28:05,Afternoon Ride,Ride,1891,12.48,Tired by the end of the week
2019,Sep,17, 06:57:48,Morning Ride,Ride,2272,12.45,Rested after the weekend!
2019,Sep,17, 17:15:47,Afternoon Ride,Ride,1973,12.45,Legs feeling strong!
2019,Sep,18, 06:43:34,Morning Ride,Ride,2285,12.6,Raining
2019,Sep,19, 06:49:53,Morning Ride,Ride,2903,14.57,Raining today
2019,Sep,18, 17:15:52,Afternoon Ride,Ride,2101,12.48,Pumped up tires
2019,Sep,19, 17:30:01,Afternoon Ride,Ride,48062,12.48,Feeling good
2019,Sep,20, 06:52:09,Morning Ride,Ride,2090,12.59,Getting colder which is nice
2019,Sep,20, 18:02:05,Afternoon Ride,Ride,2961,12.81,Feeling good
2019,Sep,24, 06:50:41,Morning Ride,Ride,2462,12.68,Rested after the weekend!
2019,Sep,24, 17:35:42,Afternoon Ride,Ride,2076,12.47,"Oiled chain, bike feels smooth"
2019,Sep,25, 06:41:24,Morning Ride,Ride,2321,12.68,Bike feeling much smoother
2019,Sep,25, 17:07:21,Afternoon Ride,Ride,1775,12.1,Feeling really tired
2019,Sep,26, 06:35:41,Morning Ride,Ride,2124,12.65,Stopped for photo of sunrise
2019,Sep,26, 17:13:33,Afternoon Ride,Ride,1860,12.52,raining
2019,Sep,27, 06:42:43,Morning Ride,Ride,2350,12.91,Detour around trucks at Jericho
2019,Sep,27, 18:00:18,Afternoon Ride,Ride,1712,12.47,Tired by the end of the week
2019,Sep,1, 06:53:52,Morning Ride,Ride,2118,12.71,Rested after the weekend!
2019,Oct,1, 17:15:07,Afternoon Ride,Ride,1732,NaN,Legs feeling strong!
2019,Oct,2, 06:45:55,Morning Ride,Ride,2222,12.82,Beautiful morning! Feeling fit
2019,Oct,2, 17:13:09,Afternoon Ride,Ride,1756,NaN,A little tired today but good weather
2019,Oct,3, 06:46:06,Morning Ride,Ride,2134,13.06,Bit tired today but good weather
2019,Oct,3, 17:45:22,Afternoon Ride,Ride,1724,12.52,Feeling good
2019,Oct,4, 06:47:36,Morning Ride,Ride,2182,12.68,Wet road
2019,Oct,4, 18:08:08,Afternoon Ride,Ride,1870,12.63,"Very tired, riding into the wind"
2019,Oct,10, 07:55:40,Morning Ride,Ride,2149,12.7,Really cold! But feeling good
2019,Oct,10, 18:10:31,Afternoon Ride,Ride,1841,12.59,Feeling good after a holiday break!
2019,Oct,11, 07:47:14,Morning Ride,Ride,2463,12.79,Stopped for photo of sunrise
2019,Oct,11, 18:16:57,Afternoon Ride,Ride,1843,11.79,"Bike feeling tight, needs an oil and pump"
2 changes: 1 addition & 1 deletion environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dependencies:
- scipy
- matplotlib
- jupyter
- quarto
- quarto=1.6.43
- pip


1 change: 1 addition & 0 deletions modules/module1/slides/module1_29.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ If we did instead use double square brackets with `pd.value_counts()`, we would
## Saving a dataframe

```{python}
# | eval: false
mfr_freq.to_csv('data/mfr_frequency.csv', index=False)
```

Expand Down
29 changes: 29 additions & 0 deletions modules/module8/module8-00-module_learning_outcomes.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
format:
html:
page-layout: full
---

# 0. Module Learning Outcomes

::: {.panel-tabset .nav-pills}

## Video

<iframe
class="video"
src="https://www.youtube.com/embed/SsBSqNNMAjY?start=0&end=59&rel=0"
title="Module 8 Video - Module Learning Outcomes"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>

## Slides

<iframe
class="slide-deck"
src="slides/module8_00.html"
></iframe>

:::
29 changes: 29 additions & 0 deletions modules/module8/module8-01-numpy_and_1d_arrays.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
format:
html:
page-layout: full
---

# 1. NumPy and 1D Arrays

::: {.panel-tabset .nav-pills}

## Video

<iframe
class="video"
src="https://www.youtube.com/embed/yz6Wwa2MkQA?start=5552&end=6133&rel=0"
title="Module 8 Video - NumPy and 1D Arrays"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
></iframe>

## Slides

<iframe
class="slide-deck"
src="slides/module8_01.html"
></iframe>

:::
Loading
Loading