Hans-Joachim Böckenhauer and Dennis Komm
Digital Medicine I: Introduction to Programming
Pandas
Autumn 2019 – December 19, 2019
Digital Medicine I: Introduction to Programming Pandas Autumn 2019 - - PowerPoint PPT Presentation
Hans-Joachim Bckenhauer and Dennis Komm Digital Medicine I: Introduction to Programming Pandas Autumn 2019 December 19, 2019 So far. . . numpy and matplotlib The Modules numpy and matplotlib numpy Calculations with vectors and matrices
Autumn 2019 – December 19, 2019
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 1 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 1 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 2 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 2 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 3 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 3 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 3 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 4 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 5 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 5 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 5 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 5 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 5 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 5 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 5 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 6 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 6 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 6 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 6 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 6 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 7 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 7 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 7 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 7 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 8 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 8 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 8 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 9 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 9 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 9 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 9 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 9 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 10 / 12
import pandas as pd import matplotlib.pyplot as plt data = pd.read_csv("ugz_luftqualitaetsmessung_seit-2012.csv") newdata = data.iloc[5:, 0:3] newdata = newdata.rename(columns={"Zürich Stampfenbachstrasse": "SO2", \ "Zürich Stampfenbachstrasse.1": "CO"}) newdata["SO2"] = newdata["SO2"].astype(float) newdata["CO"] = newdata["CO"].astype(float) newdata = newdata.loc[(newdata["SO2"] < 0.1) | (newdata["SO2"] > 0.25), "CO"] datalist = list(newdata) plt.plot(datalist) plt.show()
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 11 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 12 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 12 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 12 / 12
Digital Medicine I: Introduction to Programming – Pandas Autumn 2019 Böckenhauer, Komm 12 / 12