Parquet-to-ROOT translator
Project description
parquet_to_root
Simple translator from Parquet to ROOT TTree
Install: pip3 install parquet_to_root
Requires PyROOT and pyarrow. The latter can be installed via pip; the former is more complicated, but if you're reading this you probably know how to get it. (The tests in this package use miniconda: conda install -c conda-forge root.)
To run from the command line:
python3 -m parquet_to_root infile.parquet outfile.root [-t TREENAME] [--verbose]
To run from your script,
from parquet_to_root import parquet_to_root
parquet_to_root(parquetfile, rootfile, treename='parquettree', verbose=False)
where the default values are shown for the optional arguments.
The parquetfile argument can either be a filename string or file-like object opened in binary mode. The rootfile argument can either be a filename string or an open TFile; if a string is provided any existing file will be overwritten, while if a TFile object is provided the new tree will be added to the existing file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file parquet_to_root-0.3.0.tar.gz.
File metadata
- Download URL: parquet_to_root-0.3.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3715fba47f0f80216aa64965fa2a3bd9476d7d0dc61e73e21428f91167cc1d9b
|
|
| MD5 |
81a9e72a72651e7105de5752aa31fec1
|
|
| BLAKE2b-256 |
257c6d83bc8e6f7ebead6d33bad56546b2cdf7d3c61e17b0a64f0b8dbfd09932
|
File details
Details for the file parquet_to_root-0.3.0-py3-none-any.whl.
File metadata
- Download URL: parquet_to_root-0.3.0-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d62ae2162852279c96356e7d4adb2faa740d5bcc29b11d2b83c91ff9fa8ba33
|
|
| MD5 |
78da43d15584771813fcc834daa34fa5
|
|
| BLAKE2b-256 |
1e252f8e282c5ca3d35fb39031a6fd0ed7198e730018f2654cca91a16cf62f7b
|