| 1 |
--- |
| 2 |
jupyter: |
| 3 |
kernel_info: |
| 4 |
name: python3 |
| 5 |
kernelspec: |
| 6 |
display_name: Python 3 |
| 7 |
language: python |
| 8 |
name: python3 |
| 9 |
nbformat: 4 |
| 10 |
nbformat_minor: 2 |
| 11 |
--- |
| 12 |
|
| 13 |
::: {#cell-1 .cell .code inputHidden="false" outputHidden="false" tags="[\"parameters\"]"} |
| 14 |
``` python |
| 15 |
param = 4 |
| 16 |
``` |
| 17 |
::: |
| 18 |
|
| 19 |
::: {#cell-2 .cell .code inputHidden="false" outputHidden="false"} |
| 20 |
``` python |
| 21 |
import pandas as pd |
| 22 |
``` |
| 23 |
::: |
| 24 |
|
| 25 |
::: {#cell-3 .cell .code inputHidden="false" outputHidden="false"} |
| 26 |
``` python |
| 27 |
df = pd.DataFrame({'A': [1, 2], 'B': [3 + param, 4]}, |
| 28 |
index=pd.Index(['x0', 'x1'], name='x')) |
| 29 |
df |
| 30 |
``` |
| 31 |
::: |
| 32 |
|
| 33 |
::: {#cell-4 .cell .code inputHidden="false" outputHidden="false"} |
| 34 |
``` python |
| 35 |
%matplotlib inline |
| 36 |
df.plot(kind='bar') |
| 37 |
``` |
| 38 |
::: |