Skip to content

Instantly share code, notes, and snippets.

@MohamedElashri
Last active October 28, 2020 20:54
Show Gist options
  • Save MohamedElashri/3ed6aed09a0c311ab0e5d67c83405923 to your computer and use it in GitHub Desktop.
Save MohamedElashri/3ed6aed09a0c311ab0e5d67c83405923 to your computer and use it in GitHub Desktop.
convert ROOT data to csv in a simple way using rootpy package
from rootpy.io import root_open
f=root_open('File.root')
t=f.Get('FlatTree')
t.csv()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment