Verified Commit cdd31481 authored by Erxleben, Fredo's avatar Erxleben, Fredo
Browse files

Fix the section titles

parent 25ae0611
Pipeline #148677 passed with stage
in 26 seconds
site_name: Object Oriented Programming in Python
site_name: "Wokshop: The Pandas Framework"
strict: false
......
[tool.poetry]
name = "workshop-oop-in-python"
name = "workshop-taming-pandas"
version = "0.1.0"
description = ""
authors = ["The HIFIS Education team <support@hifis.net>"]
......
# _Pandas_ - Introduction
# Introduction
## Overview
......@@ -26,7 +26,7 @@ Common areas that make use of it are:
* Machine Learning
## How to get _pandas_?
It can be installed via _pip_.
It can be installed via _pip_.
Make sure that the dependencies are installed as well.
## Where to find help?
......
# _Pandas_ - Dataframes and Series
# Dataframes and Series
## Overview
......@@ -74,8 +74,8 @@ sneeze_counts.name = "Sneezes"
* The index and name can also be passed directly while creating the series
We suspect that the illness of our cat is related to the weather, so we also log the average temperature and humidity
```python
We suspect that the illness of our cat is related to the weather, so we also log the average temperature and humidity
```python
temperatures = Series(data=[10.9, 8.2, 7.6, 7.8, 9.4, 11.1, 12.4], index=days_of_week, name="Temperature")
humidities = Series(data=[62.5, 76.3, 82.4, 98.2, 77.4, 58.9, 41.2], index= days_of_week, name="Humidity")
```
......@@ -120,7 +120,7 @@ To correlate our various measurements, we want some table-like data structure, s
from pandas import DataFrame # Note the camel-case spelling
```
* A _dataframe_ can be created from a list of _series_, where each _series_ forms a **row** in the resulting table
* A _dataframe_ can be created from a list of _series_, where each _series_ forms a **row** in the resulting table
```python
measurements = DataFrame(data=[sneeze_counts, temperatures, humidities])
print(measurements)
......@@ -133,7 +133,7 @@ Temperature 10.9 8.2 7.6 7.8 9.4 11.1 12.4
Humidity 62.5 76.3 82.4 98.2 77.4 58.9 41.2
```
* A _dataframe_ can be created from a dictionary of _series_ where each _series_ forms a **column** in the resulting table
* A _dataframe_ can be created from a dictionary of _series_ where each _series_ forms a **column** in the resulting table
```python
measurements = DataFrame(
data={
......
# _Pandas_ - Accessing and Filtering Data
# Accessing and Filtering Data
## Overview
......
# _Pandas_ - Modifying Dataframes
# Modifying Dataframes
## Overview
......@@ -19,7 +19,7 @@ For this purpose we have created a new series of measurements.
```python
cleaning = Series(
data={"Monday": 2, "Friday": 1, "Saturday": 3},
data={"Monday": 2, "Friday": 1, "Saturday": 3},
index=days_of_week,
name="Cleaning"
)
......@@ -61,7 +61,7 @@ Name: Temperature, dtype: object
## Adding another column to a Dataframe
To extend our dataframe, we can use
To extend our dataframe, we can use
```python
measurements.join(cleaning)
print(measurements)
......
# Workshop - OOP in Python
# Taming Pandas
This is the writeup for a workshop to provide an introduction into the _Pandas_- framework.
The contents is divided in _episodes_ and _exercises_.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment