deltascan
deltascan is a Python package that finds and summarizes the differences between two datasets.
Installation
pip install deltascan
Main Features
The DeltaScan class compares any two supported data structures accross one or more dimensions.
Data Structures:
DataFrameSeriesLazyFrame(Polars only)
Dimensions:
Rows→ rows present in one dataset but missing in the other, aligned usingjoin_on.Columns→ differences in column names and data types.Values→ mismatched values within matching rows and columns.
Example Usage
Imports
Import the DeltaScan class.
from deltascan import DeltaScan
Create DataFrames
Create two sample DataFrame objects to compare.
import pandas as pd
import polars as pl
import datetime
# February Data
left_data = pd.DataFrame({
'id': [1, 2, 3, 4],
'date': [pd.to_datetime('2026-02-28')] * 4,
'first_name': ['Alice', 'Mike', 'John', 'Sarah'],
'flag': [True, False, True, False],
'amount': [10.0, 5.3, 33.7, 99.3],
})
# January Data
right_data = pl.DataFrame({
'id': [1, 3, 9],
'date': [datetime.date(2026, 1, 31)] * 3,
'first_name': ['Alice', 'Michael', 'Zachary'],
'color': ['Pink', 'Blue', 'Red'],
'last_name': ['Jones', 'Smith', 'Einck'],
'flag': [False, True, False],
'amount': [10, None, 14],
})
Compare DataFrames
Create a DeltaScan instance to perform the comparison. See the in-code documentation for a complete list of available arguments.
ds = DeltaScan(
left_data=left_data,
right_data=right_data,
join_on='id',
left_alias='feb',
right_alias='jan',
left_context=['first_name'],
right_context=None,
verbose=True,
)
Comparison Results
Access the comparison results using the summary and differences attributes.
print(ds.summary)
shape: (8, 6)
┌─────────────────────┬───────────┬─────────────┬─────────┬───────┬──────────────┐
│ Comparison ┆ Dimension ┆ Differences ┆ Matches ┆ Total ┆ Match Rate % │
│ --- ┆ --- ┆ --- ┆ --- ┆ --- ┆ --- │
│ str ┆ str ┆ i64 ┆ i64 ┆ i64 ┆ f64 │
╞═════════════════════╪═══════════╪═════════════╪═════════╪═══════╪══════════════╡
│ jan cols not in feb ┆ columns ┆ 2 ┆ 5 ┆ 7 ┆ 0.714286 │
│ data types ┆ columns ┆ 2 ┆ 3 ┆ 5 ┆ 0.6 │
│ feb rows not in jan ┆ rows ┆ 2 ┆ 2 ┆ 4 ┆ 0.5 │
│ jan rows not in feb ┆ rows ┆ 1 ┆ 2 ┆ 3 ┆ 0.666667 │
│ amount ┆ values ┆ 1 ┆ 1 ┆ 2 ┆ 0.5 │
│ date ┆ values ┆ 2 ┆ 0 ┆ 2 ┆ 0.0 │
│ first_name ┆ values ┆ 1 ┆ 1 ┆ 2 ┆ 0.5 │
│ flag ┆ values ┆ 1 ┆ 1 ┆ 2 ┆ 0.5 │
└─────────────────────┴───────────┴─────────────┴─────────┴───────┴──────────────┘
Export to Excel
Export the results to an excel file.
ds.to_excel()
Metadata
Release files for deltascan 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| deltascan-0.3.3.tar.gz | 39.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deltascan-0.3.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.6 kB
Release files / deltascan-0.3.3.tar.gz
| Download URL | deltascan-0.3.3.tar.gz |
|---|---|
| Size | 39.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d22129853d45f29b24d876f210b289f01ef0630741198590b3f070627caa171e
|
|
BLAKE2b-256 checksum How to use checksums |
eb7b6807a5444cc3254f4d8471da9ec7ca2743064849f068aec0b9c6c9081225
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / deltascan-0.3.3-py3-none-any.whl
| Download URL | deltascan-0.3.3-py3-none-any.whl |
|---|---|
| Size | 25.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95a4665e77cc4d9ef04cfebd809dd7128d8d84475285bb1c3b48bb6e6856b6a2
|
|
BLAKE2b-256 checksum How to use checksums |
b297609339a80d51793d8277809fdb2635bdd38717caeefb5d1f095c814c1f7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for deltascan 0.3.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.