forked from onionmccabbage/beyondAdvancedPythonApril2021
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpythonBeyondAdvanced_Notes.txt
More file actions
61 lines (55 loc) · 2 KB
/
Copy pathpythonBeyondAdvanced_Notes.txt
File metadata and controls
61 lines (55 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Python - Beyond Advanced
========================
Toby Dussek April 2021
Monday
- welcome
> design patterns
see https://www.geeksforgeeks.org/python-design-patterns/
and https://python-patterns.guide/
- try code in py2 and py3 (may need to import stuff)
- we will be installing additional packages as needed
> review exercise
> show an eg of the proxy pattern
> RxPY see https://rxpy.readthedocs.io/en/latest/
All my files are here:
https://github.com/onionmccabbage/beyondAdvancedPythonApril2021
Tuesday
> performance
> examples of concurrency and parallel code
> thread join and thread locks/rlocks
> review exercise
> @ decorator to make classes and methods thread safe (using Lock)
Wednesday
> profiling
> multiprocessing
to generate a data file of memory profile: mprof run profileTest.py
> testing: doctest, unittest, pytest
pytest https://docs.pytest.org/en/latest/
- Behaviour-driven development BDD
> microservices
> Flask
https://flask-restful.readthedocs.io/en/latest/quickstart.html#full-example
> how to configure the IP address of the Flask server
> review exercise: especially opportunities for testing
> Django
free book on recent Django: https://www.tangowithdjango.com/book17/
> brief overview of Anaconda (in preparation for Thurs/Friday)
Thursday
> Python for Data Analysis
data sources (csv, xlsx, text, db, url...)
> using Jupyter notebooks
markdown: https://ingeh.medium.com/markdown-for-jupyter-notebooks-cheatsheet-386c05aeebed
> numpy and data structures: the array (mutable efficient indexed colletion of same data-type)
- pandas
> review exercise
- data vizualisation
Friday
- an example contour plot
- logging see https://pastebin.com/84KyVW2i
- overview of tools and techniques
- some classic data sets
- underfitting and overfitting
- Jupyter Notebooks: ctrl-shift-minus will split a cell
see https://www.cheatography.com/weidadeyue/cheat-sheets/jupyter-notebook/
- end of course: make my examples available
- end of course feedback