wiki:WikiStart

Version 79 (modified by monga, 2 years ago) ( diff )

--

Programming in Python (for quantitative biologists)

Learning objectives and expected learning outcomes

The course introduces students to imperative programming by referring to the Python language.

The course is divided in two parts:

  1. Python and its object-oriented features;
  2. Python libraries that can be useful in scientific computation and data analysis, in particular NumPy and pandas.

Students will acquire the ability to write and tune a program that automatizes simple computational tasks; they will be able to understand how a small piece of Python code works, to find the reasons of a malfunction and to correct it appropriately. Moreover, students will be able to use the NumPy and pandas library to analyze tabular data.

A.A. 2020/21

The course will take place in the second semester. If pandemic restrictions persist, lectures will be mainly streamed (with synchronous interaction with the instructors via MS Teams); streamed videos will be available until the conclusion of the course. Some lesson could be registered in asynchronous form. Laboratory exercises will conducted autonomously by the students and special synchronous feedback sessions will be organized.

Official Timetable

As long as local regulations permit it, the lab part of the course will be held "on site": recordings will be available, but, please attend if you can, since lab coaching is much more effective with face-to-face interactions. The currently planned schedule (date format is day/month) is:

Lessons (40h) Mo 1/3, Fr 5/3, Mo 8/3 Fr 12/3 Mo 15/3 Fr 19/3 Mo 22/3, Fr 26/3, Mo 29/3 Fr 9/4 Mo 12/4, Fr 16/4, Mo 19/4Mo 26/4, Fr 30/4, Mo 3/5Mo 10/5, Fr 14/5, Mo 17/5Mo 24/5, Fr 28/5, Mo 31/5 Mo 7/6
Labs, Room DELTA (16h) Fr 12/3 Fr 19/3 Fr 9/4 Fr 23/4 Fr 30/4, Fr 7/5 Fr 14/5, Fr 21/5 Fr 28/5, Fr 4/6 Fr 11/6
Setup Scaffolded Plain Python interpreter Notebooks

Please answer to this survey.

During these hard times of physical distance it is important to keep a social proximity: subscribe to the forum on Zulip (use an @studenti.unimi.it email).

Exams

Syllabus

  • The Python programming language.
  • Native data types.
  • Functions, selections and iterations.
  • Basic data structures: lists, tuples, dictionaries.
  • Object-oriented encapsulation.
  • Iterators and generators.
  • Files.
  • Numpy multi-dimensional arrays and matrices.
  • Data manipulation and analysis with pandas.

Any Python3 book can be used to support the learning of the general part, for example J. Hunt "A Beginners Guide to Python 3 Programming" (The electronic version is free for Unimi students). NumPy and pandas have excellent online documentation.

The examination is based on laboratory exercises: in accordance with the current Rector decree, the examinations for June and July 2021 will be in-person. A final mark (on a 30 point scale) is given, by taking into account the knowledge of the subject and tools, and the clarity of the solutions.

All the slides -- All the slides (printing version)

1. March 1, 2021, 9:30-11:30 am

2. March 5, 2021, 9:30-11:30 am

3. March 8, 2021, 9:30-11:30 am

4. March 12, 2021, 9:30-11:30 am

5. March 15, 2021, 9:30-11:30 am

6. March 19, 2021, 9:30-11:30 am

7. March 22, 2021, 9:30-11:30 am

8. March 26, 2021, 9:30-11:30 am

9. March 29, 2021, 9:30-11:30 am

10. April 9, 2021, 9:30-11:30 am

11. April 12, 2021, 9:30-11:30 am

12. April 16, 2021, 9:30-11:30 am

13. April 19, 2021, 9:30-11:30 am

14. April 23, 2021, 9:30-11:30 am

Room DELTA, MS Teams YouTube

15. April 26, 2021, 9:30-11:30 am

16. April 23, 2021, 9:30-11:30 am

Room DELTA, MS Teams YouTube

17. May 3, 2021, 9:30-11:30 am

18. May 7, 2021, 9:30-11:30 am

Room DELTA, MS Teams, YouTube (for the right formulas see the notebook: I wrote a wrong one at the whiteboard)

19. May 10, 2021, 9:30-11:30 am

20. May 14, 2021, 9:30-11:30 am

Room DELTA, MS Teams, YouTube

21. May 17, 2021, 9:30-11:30 am

22. May 21, 2021, 9:30-11:30 am

Room DELTA, MS Teams, YouTube

23. May 24, 2021, 9:30-11:30 am

24. May 28, 2021, 9:30-11:30 am

Room DELTA, MS Teams, YouTube

25. May 31, 2021, 9:30-11:30 am

26. June 4, 2021, 9:30-11:30 am

Room DELTA, MS Teams, YouTube

27. June 7, 2021, 9:30-11:30 am

28. June 11, 2021, 9:30-11:30 am

Room DELTA, MS Teams, YouTube

Note: See TracWiki for help on using the wiki.