Skip to main content

Used to compare 2 Pandas DFs

Project description

pdcompare

Used to compare two pandas DataFrame objects to see how they changed.

pip install pdcompare

Requirements

The DataFrames, must have the same index to compare correctly. An error will be thrown if the index data-types do not match, and a warning will be thrown if the index names are differnt.

STEPS

Initialize and call the compare() method:

from pdcompare.compare import Compare

compare_object = Compare(df1,df2)
compare_object.compare()

To get a dictionary of detailed data call:

compare_object.output()

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

pdcompare-0.1.1.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

pdcompare-0.1.1-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page