Skip to main content

A library that runs pre-join analysis.

Project description

Advanced Pre-merge Analysis Library

A library that runs pre-join analysis, giving basic stats on the tables to be joined, prediction on the final table, composite join keys suggestion and also detects potential risks like NaNs or Cartesian Product explosions

======================================== Merge on: CUST_NAME ========================================
                    Table 1 Table 2
Rows                  38168   20000
Dtypes      [str, NoneType]   [str]
NaN                    2757       0
Unique                32929   18005
Duplicates             5238    1995
Matches: 23

Left                     Right                    Inner                    Outer
Rows: 38170              Rows: 20001              Rows: 26                 Rows: 58145
Type: multiple-multiple  Type: multiple-multiple  Type: multiple-multiple  Type: multiple-multiple
RAM~: 5.5 MB             RAM~: 2.9 MB             RAM~: 3.8 KB             RAM~: 8.3 MB



------------------------------
💡 COMPOSITE KEY SUGGESTION
------------------------------
Joining on INN: 38168 rows
Joining on composition of {'INN', 'CUST_NAME'}: 37316 rows, reduces duplicates by 4387 rows.

Installation

You can install the library using pip:

pip install stat-merge 

Importing the Library

import stat_merge as sm

Usage

sm.show(df1, df2) 

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

stat_merge-1.0.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

stat_merge-1.0.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file stat_merge-1.0.0.tar.gz.

File metadata

  • Download URL: stat_merge-1.0.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for stat_merge-1.0.0.tar.gz
Algorithm Hash digest
SHA256 eb320894d56513d8e48c136c14fb8d8cb1b0617d4fa074e07770fdb52ad93285
MD5 8d1bbad9579ebf7da7f7a0fe61a90531
BLAKE2b-256 cbb586b93d21bfd3ef31be77c5d45ca19ae7581a0be828cbbb1136cc30ee9825

See more details on using hashes here.

File details

Details for the file stat_merge-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: stat_merge-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for stat_merge-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 881732750e4729803e1cf0b42d5db5fc03cee063d82c2e10c5f800c77521776c
MD5 39a0a43051b8660ff1a9563968bc8031
BLAKE2b-256 e514579334f47a2ff0d7256b19592571571056f0c1a79e2efbd5a8adfae6e164

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