Go to the main Content

<< Back to the home page

Basic of Python programming through Hydrology

Category: Projekti

Through this summer school you will learn the first steps of programming in the Python programming language, through interesting examples from Hydrology.

Teacher: Karlo Leskovar, Ph.D.


Target group: technical college students, high school seniors, anyone who wants to start programming

Short description:
The goal of this summer school is to introduce students to the basics of Python programming and to provide a framework on how to easily replace spreadsheet programs. It will be shown how to load, analyse and print the actual hydrological data in a diagram. In addition, a basic prediction model based on linear regression, polynomial regression, the K-nearest neighbours method, and Decision-Tree methods will be developed. The developed models will be evaluated to determine their accuracy.


Curriculum:

  1. A brief introduction to Hydrology and the Python programming language
    • What is Hydrology?
    • What is Python?
    • Installing the necessary tools - setting up the Python development environment
    • Jupyter Notebook and Anaconda (cell types in the Jupyter Notebook, introduction to the interface)
    • Starting the first program (script)
  2. Basic data types in Python
    • Strings (words, letters)
    • Numbers (integes, floats, doubles)
    • Variables
  3. Data Structures
    • Lists
    • Dictionaries
    • Tuples
  4. Control flow and loops
    • If-else
    • for loop
    • while loop
    • Functions
  5. NumPy i Pandas libraries – working with arrays and table data - loading files (.csv, .xlsx)
  6. Basics of diagram plotting– matplotlib.pyplot
    • Line plots
    • Scatter plots
    • Bar plots
    • Combined plots
  7. Fundamentals of machine learning - regression methods - scikit-learn library
    • Linear regression
    • Polynomial regression
    • K-neighbours
    • Decision Tree
    • Evaluation methods – MSE, MAE, r2


      Linked Documents:

      Python_Summer_School.pdf

EN

The Faculty website is available in Croatian language by default.
For information in English or another language, please use your browser’s built-in automatic translation tool (e.g. Google Chrome → Translate this page). This approach follows the growing trend of using AI-based translation systems to ensure accessibility and multilingual communication.

HR

Internetska stranica Fakulteta je dostupna na hrvatskom jeziku.
Za prikaz sadržaja na engleskom ili nekom drugom jeziku koristite automatski prevoditelj ugrađen u vaš internetski preglednik (npr. Google Chrome → Prevedi ovu stranicu). Takav pristup u skladu je s novim trendovima korištenja umjetne inteligencije za dostupnost i višejezičnu komunikaciju.