Skip to content

Commit 147f146

Browse files
committed
add debug tutorials'
1 parent c98dca3 commit 147f146

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## \file
2+
## \ingroup tutorial_dataframe
3+
## \notebook -draw
4+
## Simple RDataFrame example in Python.
5+
##
6+
## This tutorial shows a minimal example of RDataFrame. It starts without input
7+
## data, generates a new column `x` with random numbers, and finally draws
8+
## a histogram for `x`.
9+
##
10+
## \macro_code
11+
## \macro_output
12+
##
13+
## \date September 2021
14+
## \author Enric Tejedor (CERN)
15+
16+
import ROOT
17+
18+
# Create a data frame with 100 rows
19+
rdf = ROOT.RDataFrame(100)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## \file
2+
## \ingroup tutorial_dataframe
3+
## \notebook -draw
4+
## Simple RDataFrame example in Python.
5+
##
6+
## This tutorial shows a minimal example of RDataFrame. It starts without input
7+
## data, generates a new column `x` with random numbers, and finally draws
8+
## a histogram for `x`.
9+
##
10+
## \macro_code
11+
## \macro_output
12+
##
13+
## \date September 2021
14+
## \author Enric Tejedor (CERN)
15+
16+
import ROOT
17+
18+
# Create a data frame with 100 rows
19+
rdf = ROOT.RDataFrame(100)
20+
21+
# Define a new column `x` that contains random numbers
22+
rdf_x = rdf.Define("x", "gRandom->Rndm()")
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## \file
2+
## \ingroup tutorial_dataframe
3+
## \notebook -draw
4+
## Simple RDataFrame example in Python.
5+
##
6+
## This tutorial shows a minimal example of RDataFrame. It starts without input
7+
## data, generates a new column `x` with random numbers, and finally draws
8+
## a histogram for `x`.
9+
##
10+
## \macro_code
11+
## \macro_output
12+
##
13+
## \date September 2021
14+
## \author Enric Tejedor (CERN)
15+
16+
import ROOT
17+
18+
# Create a data frame with 100 rows
19+
rdf = ROOT.RDataFrame(100)
20+
21+
# Define a new column `x` that contains random numbers
22+
rdf_x = rdf.Define("x", "42")

0 commit comments

Comments
 (0)