We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0357ff commit 92f2314Copy full SHA for 92f2314
tutorials/analysis/dataframe/df000_simple.C
@@ -19,7 +19,7 @@ void df000_simple()
19
ROOT::RDataFrame rdf(100);
20
21
// Define a new column `x` that contains random numbers
22
- auto rdf_x = rdf.Define("x", [](){ return gRandom->Rndm(); });
+ auto rdf_x = rdf.Define("x", [](){ return; });
23
24
// Create a histogram from `x`
25
auto h = rdf_x.Histo1D("x");
tutorials/analysis/dataframe/df000_simple.py
@@ -19,7 +19,7 @@
rdf = ROOT.RDataFrame(100)
# Define a new column `x` that contains random numbers
-rdf_x = rdf.Define("x", "gRandom->Rndm()")
+rdf_x = rdf.Define("x", 42)
# Create a histogram from `x` and draw it
h = rdf_x.Histo1D("x")
0 commit comments