dference 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
dference/__init__.py ADDED
@@ -0,0 +1,33 @@
1
+ """dference - compare two DataFrames by key and explore the differences.
2
+
3
+ Quick start::
4
+
5
+ import dference
6
+
7
+ result = dference.compare(left, right, key="id")
8
+ result.summary # counts per status
9
+ result.mismatches() # one row per differing cell
10
+
11
+ # interactive, in marimo or Jupyter
12
+ widget = dference.DataFrameDiff(left, right, key="id")
13
+ """
14
+
15
+ from importlib.metadata import PackageNotFoundError, version
16
+
17
+ from ._compare import ColumnInfo, DiffResult, Status, Summary, compare
18
+ from ._widget import DataFrameDiff
19
+
20
+ try:
21
+ __version__ = version("dference")
22
+ except PackageNotFoundError: # pragma: no cover - running from a source checkout
23
+ __version__ = "0.0.0"
24
+
25
+ __all__ = [
26
+ "ColumnInfo",
27
+ "DataFrameDiff",
28
+ "DiffResult",
29
+ "Status",
30
+ "Summary",
31
+ "__version__",
32
+ "compare",
33
+ ]