30 cluster =
LocalCluster(n_workers=4, threads_per_worker=1, processes=
True, memory_limit=
"2GiB")
31 client = Client(cluster)
40if __name__ ==
"__main__":
45 num_entries = 100000000
46 d = RDataFrame(num_entries, executor=connection, npartitions=30)
49 dd =
d.Define(
"x", f
"gRandom->Gaus(10*rdfentry_/{num_entries}, 2)").Define(
50 "y", f
"gRandom->Gaus(10*rdfentry_/{num_entries}, 3)"
53 h_normal_1d =
dd.Histo1D((
"normal_1d",
"1D Histogram of a Normal Distribution", 100, -10, 20),
"x")
56 (
"normal_2d",
"2D Histogram of a Normal Distribution", 100, -15, 25, 100, -15, 25),
"x",
"y"
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.