15ROOT.gInterpreter.ProcessLine(
'''
16 unsigned long long y = 1;
20 ROOT::RDataFrame df(10);
21 auto d = df.Define("y", [&y]() {
return y *= 100; }) // A column
with ulongs
24 return std::vector<int>({x++, x++, x++, x++});
25 }) // A column
with four-elements collection
26 .Define(
"w", [&w]() {
return w *= 1.8; }) // A column
with doubles
29 return std::vector<std::vector<double>>({{z, ++z}, {z, ++z}, {z, ++z}});
30 }); // A column of matrices
35# Preparing the RResultPtr<RDisplay> object with all columns and default number of entries
37# Preparing the RResultPtr<RDisplay> object with two columns and default number of entries
38cols = ROOT.vector('string')(); cols.push_back("x"); cols.push_back("y");
41# Printing the short representations, the event loop will run
42print("The following is the representation of all columns with the default nr of entries")
44print("\n\nThe following is the representation of two columns with the default nr of entries")