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.7.0 - Add support for omf1 and omf2
  • 0.8.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.7.0.tar.gz (23.5 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.7.0-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: omfpandas-0.7.0.tar.gz
  • Upload date:
  • Size: 23.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.7 Windows/11

File hashes

Hashes for omfpandas-0.7.0.tar.gz
Algorithm Hash digest
SHA256 dc38a8c7bf2c69bd23de01509f20fb3916a42df64fb39507302d511d7bbc3c1c
MD5 49f15dafd59fd8154053640b4e73defb
BLAKE2b-256 106c6c6dc31848a482ba2a2aeffb8941cc3cb444508e3aad683aebb2e7ce7fee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: omfpandas-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 31.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.7 Windows/11

File hashes

Hashes for omfpandas-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d4354993a8e5723897d899cb5e6ba6cabf68bd8d56a306b505fc752fe133c0cf
MD5 1dc5786478ede068c6074c11ce98794d
BLAKE2b-256 d7a001961dd9d9f58f81ccda48745a5227665f5196c17bbd4efbf1fb13deb528

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