Commit cde1073
committed
[df] Improve syntax for column definition in df001
The tutorial uses a C++ lambda with increment of a shared local variable between
two different nodes of the computation graph, without explaining it. This is a
somewhat advanced usage of the API for an introductory tutorial and is also in a
seemingly irrelevant part of the tutorial (used just for creating the toy data).
RDataFrame already provides the `rdfentry_` magic column which does effectively
the same, providing a sequentially increasing number. Also, it was already used
in the Python tutorial so this commit is just aligning the two language
versions.1 parent fe5c02d commit cde1073
File tree
2 files changed
+5
-11
lines changed- tutorials/dataframe
2 files changed
+5
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 23 | + | |
| 24 | + | |
31 | 25 | | |
32 | 26 | | |
33 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | 18 | | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments