Commit 84604d5e authored by Frank Hellmann's avatar Frank Hellmann Committed by GitHub

Update to outline spring 17 Meeting 13.10.

parent 9c268993
......@@ -27,15 +27,15 @@
- traceback error (short explanation for understanding)
- dictionaries
- numpy arrays and basic operations
- for loops, enumerate, zip
- matplotlib.pyplot.plt
- for loops, enumerate, _zip_
- _matplotlib.pyplot.plt_
- if elif else
#### Numpy Intro
#### Numpy Intro (größtenteils nicht geschafft)
- np.loadtxt the example and short analysis of the loaded data
- slcing in multiple dimensions
- apply all the numpy operations (e.g. mean)
- slicing in multiple dimensions
- apply all the numpy operations (e.g. mean)
- demonstrate axis keyword
## DAY 2 AM
......@@ -51,23 +51,35 @@
- formatted strings, i.e. `f"Hello {variable}"`
- write a function in a module and load it in the notebook, including `help`
- readable functions ... i.e. use long, meaningful variable names (and take advantage of autocompletion)
- document functions (doc strings)
#### errors and stack traces
- types of errors
#### functional stuff
- functions as arguments, functions as return values, closures, decorators
#### speeding up code with numba
- demonstrate simple loop example
- *comment*: the second `idx` definition in `process_numpy` could be replaced by `idx = ~idx` and that should be (marginally and probably irrelevantly) faster (:
- use `nb.vectorize` to create an np ufunc
- timeit für speed tests
### Session AM2: Python Basics II
#### Defensive Programming
#### Defensive Programming (45-60 minutes)
- (problem to solve was unclear)
- assertions
- simple example for test-driven development
- Debuggung ... long monologue and emphasize the important points, not going to repeat all of that here ... [I put some work into the presentation here, so they can take it home](https://github.com/swc-bb/2017-05-15-python-novice-lessons/blob/master/lesson-notebooks/lesson-tim/defensive%20programming.ipynb)
#### command line programs
- the purpose is to get people to think about the ecosystem.
- that was fun
- explain the shebang and how to make a script executable
- using sys.argv and showing how useless it is
......@@ -82,7 +94,7 @@
### Session PM1: Python Final Project
- load stuff in pandas and plot it
- use `describe`, `loc`, `T`, various ways of pandas indexing
- use `describe`, `loc`, `T`, various ways of pandas indexing
- the actual project:
- easily get nice results so everybody is happy
- give the loading of the data file for free as this could set people back
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment