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.8.0.tar.gz (22.8 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.8.0-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for omfpandas-0.8.0.tar.gz
Algorithm Hash digest
SHA256 e73abf0d8abdcd8598de635f5b1258e7a77f484d55bf7547c613135bdd7d23f0
MD5 0cfdd7570bcaabd665dc38b248d65e99
BLAKE2b-256 9fa443f778da1f9f5a773ec424f5274d22cadb9e84e920dc9d881e8950899e75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: omfpandas-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 27.4 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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 900a818716b6ac7f9420f125b2f972b15e3edbf020d09e7f9167b6a4711f1b21
MD5 26ac96a1e7fa256daa3b2bf3091520d5
BLAKE2b-256 4adc7b3993aa05883fef4f490d148b3a80d3f77392bae415e6ecd3b06b8fdfbc

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