Skip to content
/ db_delta Public

Compare the migration table of a value between two datasets

License

Notifications You must be signed in to change notification settings

pemn/db_delta

Repository files navigation

📌 Description

db_delta

Compare the migration table of a value between two datasets.

db_waterfall_compare

Generate a standard waterfall chart between two datasets.

📝 Parameters

name optional description
input structured data in one of the supported file formats: xlsx, csv, shp (ESRI Shape)
key ☑️ (see notes) field(s) unique to each record. If left blank, the row index will be used. Usually used when comparing block models by blockid.
group the field which will be used to create the migration groups. Usually the lithology.
value ☑️ the sum field for the table. If blank the table will be a count of records. Usually length or volume.
condition python syntax expression to restrict both datasets. Ex.: length >= 4.0. Usually left blank.
output_matrix ☑️ path to save the migration matrix in xlsx format.
output_records ☑️ path to save a raw table with all matched records. Usefull to debug. Usually left blank.

📚 Examples

delta form

screenshot1

delta result

screenshot2

waterfall form

screenshot3

waterfall result

screenshot4

📓 Notes

If both datasets do not have the same number of records, the key parameter will be required.
In case of block models, the script bm_flag_ijk can be used to create a suitable key.

🧩 Compatibility

distribution status
winpython_icon
vulcan_icon
anaconda_icon

🙋 Support

Any question or problem contact:

  • paulo.ernesto

💎 License

Apache 2.0 Copyright vale_logo_only Vale 2023

Releases

No releases published

Packages

No packages published

Languages