Skip to content
Snippets Groups Projects
Commit 5803ca6a authored by Andreas Herten's avatar Andreas Herten
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
%% Cell type:markdown id: tags:
<section class="title-slide">
<h1><it>Introduction to</it> Data Analysis and Plotting with Pandas</h1>
<h2>JSC Tutorial</h2>
<h3>Andreas Herten, Forschungszentrum Jülich, 26 February 2019</h3>
</section>
%% Cell type:markdown id: tags:
## My Motivation
* I like Python
* I like plotting data
* I like sharing
* I think Pandas is awesome and you should use it too
%% Cell type:markdown id: tags:
## Tutorial Setup
* 60 minutes (we might do this again for some advanced stuff if you want to)
* Alternating between lecture and hands-on
* Direct feedback via https://www.polleverywhere.com/
* Please open Jupyter Notebook of this session
- … either on your **local machine** (which has Pandas)
Download here
- … or on the **JSC Jupyter service** at https://jupyter-jsc.fz-juelich.de/
- Either `pip install --user pandas seaborn` once in a shell and `cp $PROJECT_cjsc/herten1/pandas/notebook.ipynb ~/`
- Or
1. `ln -s $PROJECT_cjsc/herten1/pandas ~/.local/share/jupyter/kernels/` and
2. `cp $PROJECT_cjsc/herten1/pandas/notebook-with-kernel.ipynb ~/`
%% Cell type:markdown id: tags:
## About Pandas
<img style="float: right; max-width: 200px;" width="200px" src="img/adorable-animal-animal-photography-1661535.jpg" />
* Python package
* For data analysis
* With data structures (multi-dimensional table; time series), operations
* From »**Pan**el **Da**ta« (multi-dimensional time series in economics)
* Since 2008
* https://pandas.pydata.org/
* Install [via PyPI](https://pypi.org/project/pandas/): `pip install pandas`
%% Cell type:markdown id: tags:
## Pandas and Friends
* Pandas works great together with other established Python tools
* [Jupyter Notebooks](https://jupyter.org/)
* Plotting with [`matplotlib`](https://matplotlib.org/)
* Modelling with [`statsmodels`](https://www.statsmodels.org/stable/index.html), [`scikit-learn`](https://scikit-learn.org/)
* Nicer plots with [`seaborn`](https://seaborn.pydata.org/), [`altair`](https://altair-viz.github.io/)
%% Cell type:code id: tags:
``` python
import pandas as pd
```
%% Cell type:markdown id: tags:
<section class="title-slide">
<h1><it>Introduction to</it> Data Analysis and Plotting with Pandas</h1>
<h2>JSC Tutorial</h2>
<h3>Andreas Herten, Forschungszentrum Jülich, 26 February 2019</h3>
</section>
%% Cell type:markdown id: tags:
## My Motivation
* I like Python
* I like plotting data
* I like sharing
* I think Pandas is awesome and you should use it too
%% Cell type:markdown id: tags:
## Tutorial Setup
* 60 minutes (we might do this again for some advanced stuff if you want to)
* Alternating between lecture and hands-on
* Direct feedback via https://www.polleverywhere.com/
* Please open Jupyter Notebook of this session
- … either on your **local machine** (which has Pandas)
Download here
- … or on the **JSC Jupyter service** at https://jupyter-jsc.fz-juelich.de/
- Either `pip install --user pandas seaborn` once in a shell and `cp $PROJECT_cjsc/herten1/pandas/notebook.ipynb ~/`
- Or
1. `ln -s $PROJECT_cjsc/herten1/pandas ~/.local/share/jupyter/kernels/` and
2. `cp $PROJECT_cjsc/herten1/pandas/notebook-with-kernel.ipynb ~/`
%% Cell type:markdown id: tags:
## About Pandas
<img style="float: right; max-width: 200px;" width="200px" src="img/adorable-animal-animal-photography-1661535.jpg" />
* Python package
* For data analysis
* With data structures (multi-dimensional table; time series), operations
* From »**Pan**el **Da**ta« (multi-dimensional time series in economics)
* Since 2008
* https://pandas.pydata.org/
* Install [via PyPI](https://pypi.org/project/pandas/): `pip install pandas`
%% Cell type:markdown id: tags:
## Pandas and Friends
* Pandas works great together with other established Python tools
* [Jupyter Notebooks](https://jupyter.org/)
* Plotting with [`matplotlib`](https://matplotlib.org/)
* Modelling with [`statsmodels`](https://www.statsmodels.org/stable/index.html), [`scikit-learn`](https://scikit-learn.org/)
* Nicer plots with [`seaborn`](https://seaborn.pydata.org/), [`altair`](https://altair-viz.github.io/)
%% Cell type:code id: tags:
``` python
import pandas as pd
```
This diff is collapsed.
/* not sure that I want to touch the font
.body {
font-family: Arial, sans-serif;
}
.reveal {
font-family: Arial, sans-serif;
}
.reveal h1, .reveal h2, .reveal h3, .reveal h4, .reveal h5, .reveal h6 {
font-family: Arial, sans-serif;
}
*/
:root {
--color-1: #009D82 ;
--color-2: #00493d ;
--color-blue: #023d6b;
--color-lightblue: #adbde3;
--logo-2: url("img/esd_logo.png") ; /* Not working, TODO */
--name : Workshop: Energy Time Series Storage and Analytics ; /*Not working, TODO*/
}
body { /* Change the logo urls in the line after if needed */
background: url("img/kit_logo.jpg"), url("img/esd_logo.png"), url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='40px' width='auto'><text x='10' y='20' fill='grey' font-size='30'> Workshop: Energy Time Series Storage and Analytics </text></svg>");
background-size: 10%, 10%, 95%;
background-position: 5% 5%, 95% 5%, 100% 98%;
background-repeat: no-repeat, no-repeat, no-repeat;
}
.reveal .progress span {
background: var(--color-1);
}
.reveal .slide-number {
color: var(--color-1);
}
.reveal a {
color: var(--color-1);
}
.reveal a:hover {
color: var(--color-2);
text-shadow: none;
border: none; }
.reveal a:hover img {
border-color: var(--color-1);
}
/*.title-slide {
background: yellow;
padding: 5px;
}*/
.rendered_html:first-of-type {
background: var(--color-blue);
margin-top: 60px;
padding-top: 300px;
}
.rendered_html:first-of-type h1 {
color: white;
}
.rendered_html:first-of-type h2 {
color: var(--color-lightblue);
}
.rendered_html:first-of-type h3 {
color: white;
font-size: smaller;
}
.rendered_html:first-of-type h1, .rendered_html:first-of-type h2 {
margin-top: 1ex;
}
.rendered_html:first-of-type h3 {
margin-top: 5ex;
}
/*********************************************
* NAVIGATION CONTROLS
*********************************************/
.reveal .controls div.navigate-left, .reveal .controls div.navigate-left.enabled {
border-right-color: var(--color-1); }
.reveal .controls div.navigate-right, .reveal .controls div.navigate-right.enabled {
border-left-color: var(--color-1); }
.reveal .controls div.navigate-up, .reveal .controls div.navigate-up.enabled {
border-bottom-color: var(--color-1); }
.reveal .controls div.navigate-down, .reveal .controls div.navigate-down.enabled {
border-top-color: var(--color-1); }
.reveal .controls div.navigate-left.enabled:hover {
border-right-color: var(--color-2); }
.reveal .controls div.navigate-right.enabled:hover {
border-left-color: var(--color-2); }
.reveal .controls div.navigate-up.enabled:hover {
border-bottom-color: var(--color-2); }
.reveal .controls div.navigate-down.enabled:hover {
border-top-color: var(--color-2); }
img/adorable-animal-animal-photography-1661535.jpg

1.79 MiB

img/esd_logo.png

11.8 KiB

img/kit_logo.jpg

58 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment