Exercise 4#

Due date: Please complete this exercise by the end of day on Wednesday 28.2.

Exercise 4 - Start your assignment

You can start working on your personal copy of the Exercise by:

Notice that if you are using GitHub Classroom for the first time, it might ask from you a permission to verify your GitHub identity. In such case, choose “Authorize GitHub Classroom”.

You can also take a look at the open course copy of Exercise 4 in the course GitHub repository (does not require logging in). Note that you should not try to make changes to this copy of the exercise, but rather only to the copy available via GitHub Classroom.

Cloud computing environment#

After you have your personal exercise in GitHub, start doing the programming using CSC Notebooks:


Using Git#


We will use git and GitHub when working with the exercises. You can find instructions for using git and the Jupyter Lab git plugin in here.


How to easily create an interactive visualization from pandas or geopandas?#

It is very easy to create an interactive visualization from any data presented as pandas DataFrame or geopandas GeoDataFrame, using either the built-in geopandas function .explore() or using a hvplot library. In this hint, we show both ways. To be able to use hvplot() functionality, we need to import the pandas extension (hvplot.pandas) that provides us extended capabilities that we can use with our DataFrames and GeoDataFrames. You can then for example do following:

import hvplot.pandas
import geopandas as gpd

# Fetch sample data
world = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres'))