Skip to main content

COMPARISON OF DATAFRAMES

Project description

What is this about?

Imagine you want to compare various iterations of a table or data file. You may need to ensure that your versions of a list that is maintained by more than one person or system are same. When you have to solve this manually, it is difficult. So, let's make use of this library right now!

How does it work?

The script takes the ID value of an entry from the first table, searches for it in the second table, and sees if it can find it there. If it does not, it will list this entry as a table 1 entry that was not found in table 2. This will occur in the opposite direction for table 2 versus table 1. Furthermore, the script compares the values of entries with the same ID and, if they differ, lists the differences.

What does it require?

Each table entry must have a unique identifier, also known as a key value. This could be an order number or an employee number, for example, but it could also be any other characters as long as it is unique to an entry. This key value must be located in your table's first column. The order of the other columns, and also the overall order of the rows, is completely irrelevant. we hope this library saves you some time!

Version Release Beta

0.0.3 (06/07/2022)


Usage

Install the published library:

pip install df_lib_syren

from df_lib_syren import syr_compareDF

source =  '/source file path/'
target =  '/target file path/'

compare_dfs = syr_compareDF(source_file = source, target_file= target)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

df_lib_syren-0.0.3-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file df_lib_syren-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: df_lib_syren-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for df_lib_syren-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a4625bbf53d530e59dd3543d2433928a00b3ac08ce2ddc7c54d989984959ca63
MD5 251aa17a107745319ac71832b1a3118d
BLAKE2b-256 815e839b82a13d819cb1e9cc3126f13847f7ee9076179d9277591e1a33c8c352

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