Skip to main content

Dataframe comparison in Python

Project description

DataComPy

PyPI - Python Version Code style: black PyPI version Anaconda-Server Badge PyPI - Downloads

DataComPy is a package to compare two Pandas DataFrames. Originally started 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). Then extended to carry that functionality over to Spark Dataframes.

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[dask]
pip install datacompy[duckdb]
pip install datacompy[polars]
pip install datacompy[ray]

In-scope Spark versions

Different versions of Spark play nicely with only certain versions of Python below is a matrix of what we test with

Spark 3.1.3 Spark 3.2.3 Spark 3.3.4 Spark 3.4.2 Spark 3.5.0
Python 3.8
Python 3.9
Python 3.10
Python 3.11
Python 3.12

[!NOTE] At the current time Python 3.12 is not supported by Spark and also Ray within Fugue.

Supported backends

  • Pandas: (See documentation)
  • Spark: (See documentation)
  • Polars (Experimental): (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

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

datacompy-0.11.3.tar.gz (57.1 kB view details)

Uploaded Source

Built Distribution

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

datacompy-0.11.3-py3-none-any.whl (41.8 kB view details)

Uploaded Python 3

File details

Details for the file datacompy-0.11.3.tar.gz.

File metadata

  • Download URL: datacompy-0.11.3.tar.gz
  • Upload date:
  • Size: 57.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for datacompy-0.11.3.tar.gz
Algorithm Hash digest
SHA256 fbc64f05ce6347a3b13e88bcb2db1ec63e2ca277f333133e112964838e90bd30
MD5 096a43dec1fe20ee66ea2f1ec3d26443
BLAKE2b-256 2d697a7124a685748bb29db056b227de33bc5e36d96889e4d37140f6a13abbe4

See more details on using hashes here.

File details

Details for the file datacompy-0.11.3-py3-none-any.whl.

File metadata

  • Download URL: datacompy-0.11.3-py3-none-any.whl
  • Upload date:
  • Size: 41.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.18

File hashes

Hashes for datacompy-0.11.3-py3-none-any.whl
Algorithm Hash digest
SHA256 eaf1738cb25fabeb84fbdad52da0b32348062636b4a18b07d43b7460d7956b23
MD5 5ff3573f3be8459c96b5a140336440dc
BLAKE2b-256 4ab9cf9bd7df71c280d04062221f639f2b719d0f8fa24508bf85fe22b163bad5

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