Skip to content

Commit e1fd443

Browse files
authored
Merge pull request #40 from fhdsl/S4
Season 6 end
2 parents 599e962 + 17900a1 commit e1fd443

300 files changed

Lines changed: 28912 additions & 5960 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

01-intro-to-computing.Rmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ Now, we will get to the basics of programming grammar.
7878

7979
- **Expressions** are be built out of **operations** or **functions**.
8080

81-
- Functions and operations take in **data types** as inputs, do something with them, and **return** another data type as ouput.
81+
- Functions and operations take in **data types** as inputs, do something with them, and **return** another data type as output.
8282

83-
- We can combine multiple expressions together to form more complex expressions: an expression can have other expressions nested inside it.
83+
- If the function or operation input contains expressions, evaluate those expressions first.
8484

8585
For instance, consider the following expressions entered to the Python Console:
8686

@@ -222,7 +222,7 @@ And there is an operational equivalent:
222222
We will mostly look at functions with input arguments and return types in this course, but not all functions need to have input arguments and output return. Let's look at some examples of functions that don't always have an input or output:
223223

224224
| Function call | What it takes in | What it does | Returns |
225-
|---------------------------------------------------------------------------|--------------------------|---------------------------------------------------------------|---------|
225+
|-----------------------|----------------|------------------|----------------|
226226
| [`pow(a, b)`](https://docs.python.org/3/library/functions.html#pow) | integer `a`, integer `b` | Raises `a` to the `b`th power. | Integer |
227227
| [`time.sleep(x)`](https://docs.python.org/3/library/time.html#time.sleep) | Integer `x` | Waits for `x` seconds. | None |
228228
| [`dir()`](https://docs.python.org/3/library/functions.html#dir) | Nothing | Gives a list of all the variables defined in the environment. | List |

02-data-structures.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ The list data structure we have been working with is an example of an **Object**
8888

8989
- **Attributes** that hold subset or additional data for the object.
9090

91-
- Functions called **Methods** that are for the object and *have to* take in the variable referenced as an input
91+
- Functions called **Methods** that are for the object and *have to* take in the variable referenced as an input.
9292

9393
This organizing structure on an object applies to pretty much all Python data types and data structures.
9494

images/Intro_to_Python_R2.png

583 KB
Loading

images/stickers mosaic.png

277 KB
Loading

index.Rmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ The course is intended for researchers who want to learn coding for the first ti
2525

2626
## Learning Objectives
2727

28-
**Analyze** Tidy datasets in the Python programming language via data subsetting, joining, and transformations.
28+
- **Analyze** Tidy datasets in the Python programming language via data wrangling, summary statistics, and visualization.
2929

30-
**Evaluate** summary statistics and data visualization to understand scientific questions.
30+
- **Compute** summary statistics and create data visualizations to interpret data.
3131

32-
**Describe** how the Python programming environment interpret complex expressions made out of functions, operations, and data structures, in a step-by-step way.
32+
- **Describe** how the Python programming environment interpret complex expressions made out of functions, operations, and data structures, in a step-by-step way.
3333

34-
**Apply** problem solving strategies to debug broken code.
34+
- **Apply** problem solving strategies to debug broken code.
3535

3636
## Offerings
3737

slides/examples/ex1.csv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
a,b,c,d,message
2+
1,2,3,4,hello
3+
5,6,7,8,world
4+
9,10,11,12,foo

slides/examples/ex2.csv

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
1,2,3,4,hello
2+
5,6,7,8,world
3+
9,10,11,12,foo

slides/examples/ex3.csv

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# hey!
2+
a,b,c,d,message
3+
# just wanted to make things more difficult for you
4+
# who reads CSV files with computers, anyway?
5+
1,2,3,4,hello
6+
5,6,7,8,world
7+
9,10,11,12,foo
583 KB
Loading
583 KB
Loading

0 commit comments

Comments
 (0)