Skip to main content
https://img.shields.io/pypi/v/root_numpy.svg https://api.travis-ci.org/scikit-hep/root_numpy.png https://coveralls.io/repos/github/scikit-hep/root_numpy/badge.svg?branch=master https://landscape.io/github/scikit-hep/root_numpy/master/landscape.svg?style=flat https://zenodo.org/badge/DOI/10.5281/zenodo.592881.svg

root_numpy is a Python extension module that provides an efficient interface between ROOT and NumPy. root_numpy’s internals are compiled C++ and can therefore handle large amounts of data much faster than equivalent pure Python implementations.

With your ROOT data in NumPy form, make use of NumPy’s broad library, including fancy indexing, slicing, broadcasting, random sampling, sorting, shape transformations, linear algebra operations, and more. See this tutorial to get started. NumPy is the fundamental library of the scientific Python ecosystem. Using NumPy arrays opens up many new possibilities beyond what ROOT offers. Convert your TTrees into NumPy arrays and use SciPy for numerical integration and optimization, matplotlib for plotting, pandas for data analysis, statsmodels for statistical modelling, scikit-learn for machine learning, and perform quick exploratory analysis in a Jupyter notebook.

At the core of root_numpy are powerful and flexible functions for converting ROOT TTrees into structured NumPy arrays as well as converting NumPy arrays back into ROOT TTrees. root_numpy can convert branches of strings and basic types such as bool, int, float, double, etc. as well as variable-length and fixed-length multidimensional arrays and 1D or 2D vectors of basic types and strings. root_numpy can also create columns in the output array that are expressions involving the TTree branches similar to TTree::Draw().

Release files for root-numpy 4.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for root-numpy 4.8.0
File Size Uploaded
root_numpy-4.8.0.tar.gz 520.2 kB Details

Release files / root_numpy-4.8.0.tar.gz

Download URL root_numpy-4.8.0.tar.gz
Size 520.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5842bbcde92133f60a61f56e9f0a875a0dbc2a567cc65a9ac141ecd72e416878
BLAKE2b-256 checksum
How to use checksums
d55f82f5111c22599676eb8b5f9b1bf85c38dcc7995d52cd6b4a8f5f5caa4659
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/2.7.15

Release history Release notifications | RSS feed

This release

4.8.0 This release

1 release file

4.7.3

1 release file

4.7.2

1 release file

4.7.1

1 release file

4.6.0

1 release file

4.5.2

1 release file

4.5.1

1 release file

4.5.0

1 release file

4.4.1

1 release file

4.4.0

1 release file

4.3.0

1 release file

4.2.1

1 release file

4.2.0

1 release file

4.1.2

1 release file

4.1.1

1 release file

4.1.0

1 release file

4.0.1

1 release file

4.0.0

1 release file

3.4.1

1 release file

3.4.0

1 release file

3.3.1

1 release file

3.3.0

1 release file

3.2.0

1 release file

3.1.1

1 release file

3.1.0

1 release file

3.0.2

1 release file

3.0.1

1 release file

3.0.0

1 release file

2.1.0

1 release file

2.0.4

1 release file

2.0.3

1 release file

2.0.2

1 release file

2.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page