Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

TU Cookbook Notebook

Binder

Add some logos/images


Overview

Introductory paragraph

Prerequisites

This section was inspired by this template of the wonderful The Turing Way Jupyter Book.

Imports

All imports at the start

import pandas as pd

Your first content section

The narrative story begins here.

1 + 1
2

External data

As discussed, we add demo data for the initial phase of the project in a dedicated GitLab data repository . This is a quick fix until we get a better solution.

Go to the data group and create a new project with the same name as the code repository and use git lfs to add your data. Read more on this dedicated data management page.

We can then read the data over a connection with http. This can, for example, directly be achieved with pandas, like so:

url = "https://gitlab.tuwien.ac.at/api/v4/projects/11927/repository/files/sampled_data.csv/raw?ref=main&lfs=true"
pd.read_csv(url)
Loading...