Hand in until: May 10th at 23.95
This exercise is about working with Jupyter notebooks, working with dataframes and writing a good README. Additionally, we provide you with two extra tasks as a preparation for the exam. Those two tasks will not be corrected, but we will upload a sample solution. Feel free to solve them whenever you find time, there is no deadline for those :)
Please use modules from Python’s standard library only, unless it is stated otherwise in the exercise description.
Before starting this exercise, make sure you installed Jupyter, since it is not included in Python.
$ pip install --upgrade pip # update pip to avoid any issues while installing
$ pip install jupyter
Once Jupyter is installed on your machine, you can clone the GitLab repository as always into your preferred directory. To work on your .ipynb
file, navigate into the directory where the repository is located (using $ cd
) and run $ jupyter notebook
.
$ cd your/path/to/your/repo
$ jupyter notebook
Running the last command will automatically open a window in your browser. This happens, because Jupyter is a server-client application. This means, when running Jupyter, it creates a local server which you can access via a URL in a web browser. You can open this Jupyter-interface from anywhere on your computer (even if no notebook is in the dierctory).
For this exercise, you will solve all your tasks directly in a Jupyter Notebook we provide you with. A Jupyter Notebook consist of text cells and code cells, which are executable. To edit a text cell, you can click on the text and use markdown (as used in files like README .md ) for formatting. If you're not familiar with markdown, have a look at this tutorial by DataCamp. To run a cell in the Jupyter Notebook, you can either click on the Run-button, or use the shortcut Command/Control+Enter. Once a number appears to the left of the cell, it has finished running.
To submit your code, upload your notebook as a .ipynb
file to GitLab. Have a look at the instructions on OLAT > Material > Tutorial > instructions.pdf
if you're unsure how to submit your work.
- Your completed Jupyter notebook
It is mandatory to work in pairs. If you have no partner, please contact us so we can set you up with someone. Before submitting, make sure all your code runs and your repository contains all the files you need to hand in.