Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

h5df-0.0.4.tar.gz (1.5 kB view details)

Uploaded Source

File details

Details for the file h5df-0.0.4.tar.gz.

File metadata

  • Download URL: h5df-0.0.4.tar.gz
  • Upload date:
  • Size: 1.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for h5df-0.0.4.tar.gz
Algorithm Hash digest
SHA256 7ceab78d19c05d6408e9befb602477569ff8e3b5120d55d4c9c72dc49dc71b2d
MD5 142e5bb05de52dd1b55d03bf6546883c
BLAKE2b-256 5f05a1bf0df13f676b1a919321d3b42c11a0485938f73616ed13d9009c0135fb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page