Skip to content

Commit 63f8570

Browse files
committed
mod0 and start mod1
1 parent a9f223b commit 63f8570

35 files changed

Lines changed: 2705 additions & 0 deletions

modules/index.qmd

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
format: html
3+
pagetitle: Home
4+
---
5+
6+
# Welcome to Programming in Python for Data Science!
7+
8+
This course is part of the [Key Capabilities for Data Science program](https://extendedlearning.ubc.ca/programs-credentials/key-capabilities-data-science-certificate) and will teach you how to conduct data analysis in Python.
9+
During the course, you will work with powerful Python packages made for data-science, including Pandas for processing tabular data, Altair for data visualization and NumPy for working with numerical data types.
10+
11+
You will also learn about iteration, flow control, and the data types relevant to data exploration and analysis.
12+
You will leave this course capable of processing raw data into a format suitable for analysis, writing your own analysis functions, and deriving data-driven insights via the creation of interactive visualizations and summary tables.
13+
14+
15+
Course prerequisites: None
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. Programming in Python for Data Science
8+
9+
::: {.panel-tabset .nav-pills}
10+
11+
## Video
12+
13+
<iframe
14+
class="video"
15+
src="https://www.youtube.com/embed/grkcTZyb9Tk?start=0&end=219&rel=0"
16+
title="Module 0 Video - Programming in Python for Data Science"
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/module0_01.html"
27+
></iframe>
28+
29+
:::
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
format: html
3+
---
4+
5+
<script src='../../src/quiz.js'></script>
6+
7+
# 1.1. Exercises
8+
9+
## Are you ready?
10+
11+
<div id='mcq1'></div>
12+
<script>
13+
generateQuiz(
14+
'mcq1',
15+
'Question 1',
16+
'Are you ready to start the course <i>Programming in Python for Data Science</i>?',
17+
{
18+
'Yes! Let’s get this party started!': 'We love the enthusiasm! Alright let’s move on to Module 1.',
19+
'I have a Python background but have not had very much wrangling experience.': 'We recommend taking this course so that you are familiar with <code>Pandas</code> and have the fundamentals master for our more advanced Data Science courses. Please continue to Module 1.',
20+
'I don’t think this is the right fit for me.': 'That’s ok. If you don’t think this is the right course for you, we hope you find what you are looking for. We still suggest taking a look at what we have to offer in Module 1 before formulating a set opinion.',
21+
},
22+
'Yes! Let’s get this party started!',
23+
);
24+
</script>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
format: revealjs
3+
title: Welcome!
4+
title-slide-attributes:
5+
data-notes: |
6+
Welcome to Programming in Python for Data Science.
7+
---
8+
9+
```{python}
10+
# | echo: false
11+
%run src/utils.py
12+
```
13+
14+
## Course Learning Outcomes
15+
16+
1. Define tidy data and explain why it is an optimal format for data analysis.
17+
1. Transform data into the tidy data format using pandas.
18+
1. Demonstrate fundamental programming concepts such as loops and conditionals.
19+
1. Understand the key data structures in Python.
20+
1. Read data into Python data from vanilla (e.g., .csv) and non-standard plain text files, as well as common spreadsheet file types (e.g., .xls).
21+
1. Construct simple plots using Altair
22+
1. Manipulate a single data table by:
23+
7.1 Filtering rows based on a criterion or combination of criteria.
24+
7.2 Selecting variables.
25+
7.3 Creating new variables and modifying pre-existing ones.
26+
7.4 Rearranging the observations or variables by sorting.
27+
1. Manage and manipulate data with dates and times, missing values and categorical variables as well as renaming dataframe columns.
28+
1. Produce human-readable code that incorporates best practices of programming and coding style.
29+
30+
31+
32+
# Let's learn Programming in Python for Data Science
33+
34+
:::{.notes}
35+
This course is designed to give you a solid foundation of coding in Python.
36+
37+
No prior python knowledge is needed for this course.
38+
:::
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/vW2ZXIfZioE?start=0&end=29&rel=0"
16+
title="Module 1 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/module1_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. Introduction to Dataframes
8+
9+
::: {.panel-tabset .nav-pills}
10+
11+
## Video
12+
13+
<iframe
14+
class="video"
15+
src="https://www.youtube.com/embed/W88f5DAl9hk?start=0&end=114&rel=0"
16+
title="Module 1 Video - Introduction to Dataframes"
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/module1_01.html"
27+
></iframe>
28+
29+
:::
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
format: html
3+
---
4+
5+
<script src='../../src/quiz.js'></script>
6+
7+
# 1.1. Exercises
8+
9+
## Describing a Dataframe
10+
11+
<div id='mcq1'></div>
12+
<script>
13+
generateQuiz(
14+
'mcq1',
15+
'Question 1',
16+
'What are dataframes comparable to?',
17+
{
18+
'Text Documents': 'Is this an easy way to organize data?',
19+
'Excel Sheets': 'Good job!',
20+
'Picture Frames': 'Are we storing pictures in a dataframe?',
21+
},
22+
'Excel Sheets',
23+
);
24+
</script>
25+
26+
<div id='mcq2'></div>
27+
<script>
28+
generateQuiz(
29+
'mcq2',
30+
'Question 2',
31+
'If a <code>csv</code> file was opened in a plain text editor, what character would be separating the values of each column?',
32+
{
33+
'<code>:</code>': 'The "C" in <code>csv</code> does not stand for colon.',
34+
'<code>;</code>': '<code>csv</code> is an acronym for _______ Separated Values format, so likely not "Semi-Colon".',
35+
'<code>,</code>': 'Great! You have been paying attention.',
36+
},
37+
'<code>,</code>',
38+
);
39+
</script>
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+
# 2. Introduction to Pandas
8+
9+
::: {.panel-tabset .nav-pills}
10+
11+
## Video
12+
13+
<iframe
14+
class="video"
15+
src="https://www.youtube.com/embed/W88f5DAl9hk?start=120&end=371&rel=0"
16+
title="Module 1 Video - Introduction to Pandas"
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/module1_03.html"
27+
></iframe>
28+
29+
:::

0 commit comments

Comments
 (0)