Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
df008_createDataSetFromScratch.py File Reference

Detailed Description

View in nbviewer Open in SWAN
Create data from scratch with RDataFrame.

This tutorial shows how to create a dataset from scratch with RDataFrame

import ROOT
# We create an empty data frame of 100 entries
df = ROOT.RDataFrame(100)
# We now fill it with random numbers
df_1 = df.Define("rnd", "gRandom->Gaus()")
# And we write out the dataset on disk
df_1.Snapshot("randomNumbers", "df008_createDataSetFromScratch_py.root")
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
Date
June 2017
Author
Danilo Piparo (CERN)

Definition in file df008_createDataSetFromScratch.py.