Series collection
[openfisca-tunisia/parameters/prestations.non_contributives.pnafn.allocation] Montant de l'allocation aux familles nécessiteuses dans le cadre de PNAFN
- from
- 1987-01-01=7.7
- to
- 2018-04-01=180
- min:
- 7.7
- max:
- 180
- avg:
- 86.121
- σ:
- 48.765
Series code | 1987-01-01 | 2000-01-01 | 2009-01-01 | 2009-07-01 | 2010-07-01 | 2011-07-01 | 2012-04-01 | 2013-07-01 | 2014-07-01 | 2015-01-01 | 2018-04-01 |
---|---|---|---|---|---|---|---|---|---|---|---|
[prestations.non_contributives.pnafn.allocation] | 7.7 | 36.3 | 53.333 | 56.666 | 63.333 | 70 | 100 | 110 | 120 | 150 | 180 |
Loading chart
This Python snippet uses the DBnomics Python client to download the series of your cart and plot each of them with a line chart.
This is a starting point that you can customize. Plotly is used here, however any other chart library can be used.
You can start by copying it to a Jupyter Notebook , for example.
If you add series to your cart, you will need to copy-paste the new lines of the source code.
import plotly.express as px
import pandas as pd
from dbnomics import fetch_series
dfs = []
# Montant de l'allocation aux familles nécessiteuses dans le cadre de PNAFN
df1 = fetch_series("openfisca-tunisia/parameters/prestations.non_contributives.pnafn.allocation")
df1["series_id"] = df1[["provider_code", "dataset_code", "series_code"]].agg('/'.join, axis=1)
dfs.append(df1)
# display(df1)
display(px.line(df1, x="period", y="value", title=df1.series_id[0]))
df_all = pd.concat(dfs)
fig = px.line(df_all, x="period", y="value", color="series_code", title="All the cart")
fig.update_layout(legend={"xanchor": "right", "yanchor": "bottom"})
fig.show()