Library and CLI for storing numeric data frames in HDF5
Project description
Python library and CLI for storing numeric data frames in HDF5.
Rationale
Pandas has utilities for storing data frames in HDF5, but it uses PyTables under the hood, which means it is limited to frames with a relatively low number of columns (low 1000s).
This library is intended for storing and querying arbitrarily large numeric matrices which have row and column names. It has a CLI which can export/import to/from delimited text, or it can be used from within Python with tight integration with Pandas.
This library stores only numeric matrices, so it cannot handle data frames with mixed types (e.g., some strings and some numbers).
Installation
From PyPI:
pip install h5df
Latest version:
git clone https://github.com/gilesc/h5df.git
cd h5df
python setup.py install --user
This installs the CLI script “h5df”, and a Python module with the same name.
Usage
$ cat in.txt
A B C
X 1 2 3
Y 4 5 5
$ h5df load foo.h5 /my/path < in.txt
$ h5df dump foo.h5 /my/path
A B C
...
(more examples to come)
License
GPLv3
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
File details
Details for the file h5df-0.0.7.tar.gz
.
File metadata
- Download URL: h5df-0.0.7.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c2318a51c7a1465c092a99762f8e28372558e36406cb79cbb6ce6d2b034613f |
|
MD5 | b1896d1d3c2568c7c316b13dd4adfc30 |
|
BLAKE2b-256 | e3522b6f7b880a598cee476964d69303b0203c7e05a827f487afd2a10354b1c5 |