B1578 - PYTHON LAB

Academic Year 2023/2024

  • Teaching Mode: Traditional lectures
  • Campus: Bologna
  • Corso: First cycle degree programme (L) in Statistical Sciences (cod. 8873)

    Also valid for Second cycle degree programme (LM) in Statistical Sciences (cod. 9222)

Learning outcomes

By the end of the course, the students know the basics of programming in Python and the usage of the main Python libraries for statistical analysis and acquire the skills to carry out case studies using the Python language.

Course contents

      • Python programming
        • Interactive programming environments
        • Variables, expressions and types
        • Lists and Dictionaries
        • Conditional and loop statements
      • Data handling with Pandas
        • Pandas Dataframe
        • Column and row handling
        • Grouped Data
        • Data ingestion .csv and .json files
      • Data visualisation with Pandas and Seaborn
        • Introduction to visualization
        • Pandas plotting functions
        • Seaborn plotting functions

Readings/Bibliography

    • Python for Data Analysis, 3rd Edition, Wes McKinney, O'Reilly Media 2022. ISBN: 9781098104030
    • https://www.python.org/
    • https://pandas.pydata.org/
    • https://seaborn.pydata.org/
    • Better Data Visualizations, Jonathan Schwabish, Columbia University Press, 2021. ISBN: 9780231193115

Teaching methods

Lessons in lab held by prof. Carlos Gregorio Rodríguez.

The course is very practical. The concepts and ideas are tested and applied on a computer programming environment since the very beginning . The use of a computer/laptop is mandatory. The system requirements are simple: just a browser and internet connection.

The first week of the course will be on-line, the last two weeks in presence

Assessment methods

The assessment of the course is based on programming exercises that will be proposed. Students should submit their answers.

Teaching tools

    • Google Colab is used. Online access with a browser in a computer is required.
    • Teaching notes, exercises and other teaching materials provided by the instructor.
    • Moodle virtual campus required to communicate with students and manage the assignments.

Office hours

See the website of Silvia Cagnone