Baloo
Implementing the bare necessities of Pandas with the lazy evaluating and optimizing Weld framework.
Documentation here
Install
pip install baloo
Note that currently it has only been tested on Python 3.5.2, though any Python 3 version should be fine.
Benchmarks
Benchmark results over seeded randomized data are shown below. The data consists of 4 NumPy array columns: 2 of float64, 1 of int64, and 1 of int32. First 2 plots run the following operations over 56MB and 420MB total data, respectively:
df = df[(df['col1'] > 0) & (df['col2'] >= 10) & (df['col3'] < 30)] # filter
df = df.agg(['min', 'prod', 'mean', 'std']) # 4x agg
df['col4'] = df['col1'] * 2 + 1 - 23 # 3x op
df['col5'] = df['col1'].apply(np.exp) # udf
df = df.groupby(['col2', 'col4']).var() # groupby*
df = df[['col3', 'col1']].join(df[['col3', 'col2']], on='col3', rsuffix='_r') # join*
* Note that the groupby and join implementations are simplified in Baloo. For instance, the groupby result is not sorted
in Baloo as is in Pandas. The join implementation in Baloo currently relies on the on data being sorted and distinct;
sortednes is expected to be patched soon.
This last graph shows the execution time of 3x op over varying dataset sizes:
Weld is, indeed, expected to scale well due to features such as vectorization, however the compilation time outweighs the improved computation time for small datasets. Nevertheless, Baloo currently only supports a limited subset of Pandas. More work coming soon!
The scripts used to run the benchmarks are available in the relevant folder.
Metadata
Release files for baloo 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| baloo-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for baloo-0.0.5-py3-none-any.whl |
Release files / baloo-0.0.5-py3-none-any.whl
| Download URL | baloo-0.0.5-py3-none-any.whl |
|---|---|
| Size | 10.8 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
437e2ace18984432e80505f46045e7a39ea31176e90a0bc730fb57636c53a91f
|
|
BLAKE2b-256 checksum How to use checksums |
a9e3819c3deda433c443919d4bd9bc389435088f9d3997592493ce7255bf412e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.5.2
|
Security for baloo 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.