Skip to main content

DataComPy

PyPI - Python Version Ruff PyPI version Anaconda-Server Badge PyPI - Downloads

DataComPy is a package to compare two DataFrames (or tables) such as Pandas, Spark, Polars, and even Snowflake. Originally it was created to be something of a replacement for SAS's PROC COMPARE for Pandas DataFrames with some more functionality than just Pandas.DataFrame.equals(Pandas.DataFrame) (in that it prints out some stats, and lets you tweak how accurate matches have to be). Supported types include:

  • Pandas
  • Polars
  • Spark
  • Snowflake (via snowpark)
  • Dask (via Fugue)
  • DuckDB (via Fugue)

Quick Installation

pip install datacompy

or

conda install datacompy

Installing extras

If you would like to use Spark or any other backends please make sure you install via extras:

pip install datacompy[spark]
pip install datacompy[fugue]
pip install datacompy[snowflake]

LegacySparkCompare and SparkPandasCompare removal

Starting with v0.17.0, both LegacySparkCompare and SparkPandasCompare have been removed.

Supported versions and dependencies

Different versions of Spark, Pandas, and Python interact differently. Below is a matrix of what we test with. With the move to Pandas on Spark API and compatability issues with Pandas 2+ we will for the mean time note support Pandas 2 with the Pandas on Spark implementation. Spark plans to support Pandas 2 in Spark 4

Spark 3.4.4 Spark 3.5.6
Python 3.10 ✅ ✅
Python 3.11 ✅ ✅
Python 3.12 ❌ ❌
Pandas < 1.5.3 Pandas >=2.0.0
Compare ✅ ✅
SparkSQLCompare ✅ ✅
Fugue ✅ ✅

Supported backends

  • Pandas: (See documentation)
  • Spark: (See documentation)
  • Polars: (See documentation)
  • Snowflake/Snowpark: (See documentation)
  • Fugue is a Python library that provides a unified interface for data processing on Pandas, DuckDB, Polars, Arrow, Spark, Dask, Ray, and many other backends. DataComPy integrates with Fugue to provide a simple way to compare data across these backends. Please note that Fugue will use the Pandas (Native) logic at its lowest level (See documentation)

Contributors

We welcome and appreciate your contributions! Before we can accept any contributions, we ask that you please be sure to sign the Contributor License Agreement (CLA).

This project adheres to the Open Source Code of Conduct. By participating, you are expected to honor this code.

Roadmap

Roadmap details can be found here

Metadata

Release files for datacompy 0.18.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datacompy 0.18.1
File Size Uploaded Provenance Actions
datacompy-0.18.1.tar.gz 92.1 kB Without provenance Details for datacompy-0.18.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datacompy 0.18.1
File Interpreter ABI Platform Actions
datacompy-0.18.1-py3-none-any.whl Python 3 none any Details for datacompy-0.18.1-py3-none-any.whl

Total release size: 158.4 kB

Release files / datacompy-0.18.1.tar.gz

Download URL datacompy-0.18.1.tar.gz
Size 92.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ff795991de7bb1edbd677446c37662f0cd3e07c31f2796c551c9a6e274d9cc75
BLAKE2b-256 checksum
How to use checksums
e9b33435afb1c8ad1e715d5919b20f892f71b23c28becaac2e2c6877a5cc6435
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.18

Release files / datacompy-0.18.1-py3-none-any.whl

Download URL datacompy-0.18.1-py3-none-any.whl
Size 66.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e716e7703cbef932788ee6417c4d98e17d7a30d924d95871ac689b215e4cf9b4
BLAKE2b-256 checksum
How to use checksums
497dd13356d02a5694e228cc61e52a320b8776fec17ae61b3c5d0134b9efc9d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.18

Security for datacompy 0.18.1

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.18.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page