APF Engine: Distributed Python Workflow configuration and execution platform
Project description
# Informative Comparison of DataFrame Differences
This is a tool that is used to compare and test Pandas DataFrames. It has three parts.
### Core function At it’s core is a function that compares a number of aspects of two dataframes.
Number of rows
Column names
dtypes
Index
Integers
Floats
Datetimes
Objects (typically strings)
NaNs
Booleans
For each dimension, if differences are found, a key is included in the diffs dictionary that is returned. The value of that key (e.g. ‘nrows’) would be a string description (e.g. ‘observed contains 5 rows. expected 10.)
### PyTest Integration
If one is testing functionality that produces a dataframe, and one can create one to compare it to…
pytest_kit.py automatically injects N separate pytests into a test module (test_<name>.py) simply by doing the following 2 things.
Create two pytest fixtures: df_observed, and df_expected
Adding the import statement from df_compare.pytest_kit import *
That’s it, when you run $ pytest test_<name>.py, it will discover and run N separate tests!
### Shell script
This comparison can be used to compare two files, or even a directory of files containing tables.
###### Details to be added
[](https://travis-ci.org/caseyclements/pennies)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file df_compare-0.0.1.tar.gz.
File metadata
- Download URL: df_compare-0.0.1.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
527f8a72bba7a8767aa7c63f4d8a74b4936ed702bc0b5f4205f2bf858d6a1158
|
|
| MD5 |
71ada5739abdf1df30ab24f94609a54b
|
|
| BLAKE2b-256 |
f5026f3b3a31fa7995ffe371742b803220ee4d6a1c73f9fad4478c9ef07183a6
|
File details
Details for the file df_compare-0.0.1-py3-none-any.whl.
File metadata
- Download URL: df_compare-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90b22618d81196eb2a9bdd27336a881dd56e79fd8d78f4e802d26f45ec800a8a
|
|
| MD5 |
9b1a4bda7d189e30743a3d91ec824948
|
|
| BLAKE2b-256 |
37d46de84980a02d19595c5817bba0900c76fdd1039b5c22bdcd9cf53f1ee0c6
|