• To provide 2 hours
training on best practices on Python programming.
• Date: 11/08/2022, 2pm-4pm
- Intro to Python
- for-loop, zip, enumerate (item 1, 20min)
- https://www.w3schools.com/python/
- modularisation - class, functions (item 3, 30 min)
- difference between class and function
- today only function
- how to define function
- how to pass parameters, by value vs by pointer
- multiple return values
- concepts of api
- handling excel - pandas (item 2, 30min)
- how to read/write
- append column
- changing header
- skip row
- write without index
- slicing, boolean indexing
- iloc, loc entire row vs entire column
- modify column and add as new column
- https://wesmckinney.com/book/
- web scrapping - selenium, bs4 (item4, 30 min)
- requests or selenium
- handling beautifulsoup examples
-
Task partitioning, explanation, flowchart (20 min)
- their deliverables:
- flowchart - draw.io
- code with functions only with main the entry point
- input from file, output to file as well
- sys.args ... no hard coding
- Q&A