Python Library for doing ROOT RDataFrame analysis
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
PyRDF
demos
tests
tutorials
.gitignore
.travis-script.sh
.travis.yml
MANIFEST.in
README.md
requirements.txt
run_tests.sh
setup.cfg
setup.py Change 'PyTDF' to 'PyRDF' in setup.py, fixes #43 Jul 10, 2018

README.md

screen shot 2018-07-06 at 8 25 59 pm

PyRDF : The Python ROOT DataFrame Library

https://travis-ci.org/shravan97/PyRDF.svg?branch=master

A pythonic wrapper around ROOT's RDataFrame with support for distributed execution.

Sample usage

import PyRDF, ROOT
PyRDF.use('spark', {'npartitions':4})

df = PyRDF.RDataFrame("data", ['https://root.cern/files/teaching/CMS_Open_Dataset.root',])

etaCutStr = "fabs(eta1) < 2.3"
df_f = df.Filter(etaCutStr)

df_histogram = df_f.Histo1D("eta1")

canvas = ROOT.TCanvas()
df_histogram.Draw()
canvas.Draw()

Report

http://shravanmurali.com/PyRDF/