Skip to content

Commit a0e9e82

Browse files
committed
Add explanatory sentence.
1 parent 06fcb1c commit a0e9e82

File tree

1 file changed

+34
-15
lines changed

1 file changed

+34
-15
lines changed

docs/tutorials/personas.ipynb

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,27 @@
168168
" p2=0,\n",
169169
" n_points=5,\n",
170170
" ),\n",
171-
")\n",
172-
"\n",
171+
")"
172+
]
173+
},
174+
{
175+
"cell_type": "markdown",
176+
"id": "6",
177+
"metadata": {},
178+
"source": [
179+
"Looking at the `(\"einnahmen\", \"bruttolohn_m\")` column, we see that the secondary\n",
180+
"earner's earnings are varied between 1,000 and 3,000 Euro per month in steps of 500\n",
181+
"Euro, while the primary earner's earnings are fixed at 4,000 Euro per month and the\n",
182+
"child's earnings are 0:"
183+
]
184+
},
185+
{
186+
"cell_type": "code",
187+
"execution_count": null,
188+
"id": "7",
189+
"metadata": {},
190+
"outputs": [],
191+
"source": [
173192
"persona_with_varying_income_of_secondary_earner.input_data_tree[\"einnahmen\"][\n",
174193
" \"bruttolohn_m\"\n",
175194
"]"
@@ -178,7 +197,7 @@
178197
{
179198
"cell_type": "code",
180199
"execution_count": null,
181-
"id": "6",
200+
"id": "8",
182201
"metadata": {},
183202
"outputs": [],
184203
"source": [
@@ -199,7 +218,7 @@
199218
},
200219
{
201220
"cell_type": "markdown",
202-
"id": "7",
221+
"id": "9",
203222
"metadata": {},
204223
"source": [
205224
"If you want to vary anything else than `bruttolohn_m`, use the upserting mechanism\n",
@@ -215,7 +234,7 @@
215234
{
216235
"cell_type": "code",
217236
"execution_count": null,
218-
"id": "8",
237+
"id": "10",
219238
"metadata": {},
220239
"outputs": [],
221240
"source": [
@@ -227,7 +246,7 @@
227246
},
228247
{
229248
"cell_type": "markdown",
230-
"id": "9",
249+
"id": "11",
231250
"metadata": {},
232251
"source": [
233252
"### Advanced Usage: Upserting Input Data\n",
@@ -251,7 +270,7 @@
251270
{
252271
"cell_type": "code",
253272
"execution_count": null,
254-
"id": "10",
273+
"id": "12",
255274
"metadata": {},
256275
"outputs": [],
257276
"source": [
@@ -264,7 +283,7 @@
264283
},
265284
{
266285
"cell_type": "markdown",
267-
"id": "11",
286+
"id": "13",
268287
"metadata": {},
269288
"source": [
270289
"Next, define the input data to upsert:\n"
@@ -273,7 +292,7 @@
273292
{
274293
"cell_type": "code",
275294
"execution_count": null,
276-
"id": "12",
295+
"id": "14",
277296
"metadata": {},
278297
"outputs": [],
279298
"source": [
@@ -284,7 +303,7 @@
284303
},
285304
{
286305
"cell_type": "markdown",
287-
"id": "13",
306+
"id": "15",
288307
"metadata": {},
289308
"source": [
290309
"Alternatively, you can generate a range of rent levels using `numpy.linspace`:"
@@ -293,7 +312,7 @@
293312
{
294313
"cell_type": "code",
295314
"execution_count": null,
296-
"id": "14",
315+
"id": "16",
297316
"metadata": {},
298317
"outputs": [],
299318
"source": [
@@ -310,7 +329,7 @@
310329
},
311330
{
312331
"cell_type": "markdown",
313-
"id": "15",
332+
"id": "17",
314333
"metadata": {},
315334
"source": [
316335
"> **The order of input data matters!** GETTSIM uses pointers to `p_id`s in the input\n",
@@ -328,7 +347,7 @@
328347
{
329348
"cell_type": "code",
330349
"execution_count": null,
331-
"id": "16",
350+
"id": "18",
332351
"metadata": {},
333352
"outputs": [],
334353
"source": [
@@ -339,7 +358,7 @@
339358
},
340359
{
341360
"cell_type": "markdown",
342-
"id": "17",
361+
"id": "19",
343362
"metadata": {},
344363
"source": [
345364
"The new persona can then be used to compute taxes and transfers:"
@@ -348,7 +367,7 @@
348367
{
349368
"cell_type": "code",
350369
"execution_count": null,
351-
"id": "18",
370+
"id": "20",
352371
"metadata": {},
353372
"outputs": [],
354373
"source": [

0 commit comments

Comments
 (0)