Skip to main content

DataFrame Toolkit for Analysts

Project description

analysta 🖇️

PyPI - Version PyPI - Python Version

A Python library for comparing pandas DataFrames using primary keys, tolerances, and audit-friendly diffs.
Easily detect mismatches, missing rows, and cell-level changes between two datasets.


🧾 Table of Contents

🚀 Installation

pip install analysta

Python 3.9 or higher is required.

⚡ Quick Example

from analysta import Delta
import pandas as pd

df1 = pd.DataFrame({"id": [1, 2], "price": [100, 200]})
df2 = pd.DataFrame({"id": [1, 2], "price": [100, 250]})

delta = Delta(df1, df2, keys=["id"])
print(delta.unmatched_a)         # Rows in df1 not in df2
print(delta.unmatched_b)         # Rows in df2 not in df1
print(delta.changed("price"))    # Row(s) where price changed

✨ Features

  • Key-based row comparison: "A not in B" and vice versa
  • Tolerant numeric diffs (absolute & relative)
  • Highlight changed columns
  • Built for analysts, not just engineers
  • CLI and HTML reporting coming soon

📄 License

analysta is distributed under the terms of the MIT license.

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

analysta-0.0.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

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

analysta-0.0.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file analysta-0.0.2.tar.gz.

File metadata

  • Download URL: analysta-0.0.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for analysta-0.0.2.tar.gz
Algorithm Hash digest
SHA256 dc58cb1811ffd2ee08920d248805b9bf71f5d95c8a134a6976ab3e47462fd73c
MD5 bba66f5e7dffa79a4ee57bba6e54f4b7
BLAKE2b-256 0463ea3f34d21f7e51f4c6ae89d132ba71178d393e686b4795962eeb3a83c3a1

See more details on using hashes here.

File details

Details for the file analysta-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: analysta-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.27.0

File hashes

Hashes for analysta-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 381c389aab8db38191450e66a8e45819303caee3bf31705bb7c470a9c97b5557
MD5 b2177a6a757e0758edd8059e94121ffd
BLAKE2b-256 635176b8a2d157ca84bec6cb833921d22f5ca462dcc5b6dde5797bb9543031f5

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