ROOT
Version v6.34
master
v6.32
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
►
ROOT
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
df008_createDataSetFromScratch.py
Go to the documentation of this file.
1
## \file
2
## \ingroup tutorial_dataframe
3
## \notebook -nodraw
4
## Create data from scratch with RDataFrame.
5
##
6
## This tutorial shows how to create a dataset from scratch with RDataFrame
7
##
8
## \macro_code
9
##
10
## \date June 2017
11
## \author Danilo Piparo (CERN)
12
13
import
ROOT
14
15
# We create an empty data frame of 100 entries
16
df =
ROOT.RDataFrame
(100)
17
18
# We now fill it with random numbers
19
ROOT.gRandom.SetSeed
(1)
20
df_1 =
df.Define
(
"rnd"
,
"gRandom->Gaus()"
)
21
22
# And we write out the dataset on disk
23
df_1.Snapshot
(
"randomNumbers"
,
"df008_createDataSetFromScratch_py.root"
)
TRangeDynCast
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Definition
TCollection.h:358
ROOT::RDataFrame
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
Definition
RDataFrame.hxx:41
tutorials
dataframe
df008_createDataSetFromScratch.py
ROOT tags/6-34-04 - Reference Guide Generated on Thu Mar 27 2025 04:47:36 (GVA Time) using Doxygen 1.10.0