Skip to main content

A package for reading and writing OMF data with pandas

Project description

omfpandas

PyPI Run Tests Publish Docs

A pandas (and parquet) interface for the Open Mining Format package (omf).

When working with OMF files, it is often useful to convert the data to a pandas DataFrame. This package provides a simple interface to do so.

The parquet format is a nice, compact, efficient format to persist pandas DataFrames. This package also provides a simple interface to convert an omf element to a parquet file. When datasets do not fit into memory, parquet files can be read in chunks or by column.

Note: This package only supports omf 2.0, which is currently only a pre-release.

Installation

pip install omfpandas

If you intend to use the parquet functionality, you will need to install the optional dependencies.

pip install omfpandas[io]

Roadmap

  • 0.2.0 - Add support for reading a VolumeElement (Block Model) from an OMF file as a pandas DataFrame. Export a VolumeElement as a parquet file.
  • 0.3.0 - Add support for writing a DataFrame to an OMF BlockModel. Version 2.0 of the OMF spec is supported.
  • 0.4.0 - Convert to omf 2.0 support.
  • 0.5.0 - Block model profiling, with reports persisted in the omf file.
  • 0.6.0 - Optional block model validation using pandera json schemas.
  • ...
  • 0.9.0 - Add support for low-memory/out-of-core writing an omf element to parquet
  • ...

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

omfpandas-0.9.1.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

omfpandas-0.9.1-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

Details for the file omfpandas-0.9.1.tar.gz.

File metadata

  • Download URL: omfpandas-0.9.1.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for omfpandas-0.9.1.tar.gz
Algorithm Hash digest
SHA256 2f8f94f5805c3a8de5dd3d9cd679a72c0b271ab727650745918496cf9cba5c6f
MD5 74a68a285a841402567fc6f8fd4461de
BLAKE2b-256 babcc94ef6ad5d287331559714b2d3ff7561bed6e971df24f1455e7792c5f82e

See more details on using hashes here.

File details

Details for the file omfpandas-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: omfpandas-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 31.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for omfpandas-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a6a40b7039b8f4b4c3621cf7feb3763ff8466624b4fb7ce1c8e228e6a0c8ea07
MD5 b5e2376761b1aef4f0da7d8dae9c920d
BLAKE2b-256 b06e21b5f22a4c12d1af7af96d90858b6a8e2e3103ef7f5cac3fccb4c4ea9124

See more details on using hashes here.

Supported by

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