44print(
"Mean of numpy array:",
np.mean(arrays[
"x"]))
45print(
"Standard deviation of numpy array:",
np.std(arrays[
"x"]))
59 'Skipping `df.hist(column="x", bins=x.bins())` because matplotlib could not be imported or was not able to display the plot.'
80fit_result =
gauss.fitTo(data, PrintLevel=-1, Save=
True)
84xframe =
x.frame(Title=
"Gaussian pdf")
89c =
ROOT.TCanvas(
"rf409_NumPyPandasToRooFit",
"rf409_NumPyPandasToRooFit", 800, 400)
91c.SaveAs(
"rf409_NumPyPandasToRooFit.png")
99 counts, bin_edges = histogram_output
114print(
"Counts and bin edges from RooDataHist.to_numpy:")
119print(
"Counts and bin edges from np.histogram:")
134print(
"RooDataHist imported with default binning and exported back to numpy:")
145print(
"RooDataHist imported with linspace binning and exported back to numpy:")
157print(
"RooDataHist imported with uniform binning and exported back to numpy:")
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.