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.3.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.3-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for omfpandas-0.9.3.tar.gz
Algorithm Hash digest
SHA256 a9604a0d7ee4d554eaa67b0aed66b8cb50a561a57f332465a1a9e0a537087aaa
MD5 1e4eedaeb52701971c7a63b7b5fbcf50
BLAKE2b-256 13e63601cf1209d9d995abfecbfeefe059aad8e1648b9b3d69eed9a2c42fac8b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for omfpandas-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 faff45dc85bd6715b15f255ae1024f426dfca53cfbfa29149965deabd702567b
MD5 6e3126d8c2b4edef6bfb3c55ce70ea76
BLAKE2b-256 998ce6ac071d038bac8c5307e38f00343ac9fa76503df8902297e96a415200c3

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