17ROOT.gInterpreter.ProcessLine(
'''
18 unsigned long long y = 1;
22 ROOT::RDataFrame df(10);
23 auto d = df.Define("y", [&y]() {
return y *= 100; }) // A column
with ulongs
26 return std::vector<int>({x++, x++, x++, x++});
27 }) // A column
with four-elements collection
28 .Define(
"w", [&w]() {
return w *= 1.8; }) // A column
with doubles
31 return std::vector<std::vector<double>>({{z, ++z}, {z, ++z}, {z, ++z}});
32 }); // A column of matrices
37# Preparing the RResultPtr<RDisplay> object with all columns and default number of entries
39# Preparing the RResultPtr<RDisplay> object with two columns and default number of entries
40cols = ROOT.vector('string')(); cols.push_back("x"); cols.push_back("y");
43# Printing the short representations, the event loop will run
44print("The following is the representation of all columns with the default nr of entries")
46print("\n\nThe following is the representation of two columns with the default nr of entries")