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 +33 -0
- dference/_compare.py +726 -0
- dference/_query.py +492 -0
- dference/_widget.py +251 -0
- dference/py.typed +0 -0
- dference/static/widget.css +952 -0
- dference/static/widget.js +1370 -0
- dference-0.1.0.dist-info/METADATA +283 -0
- dference-0.1.0.dist-info/RECORD +11 -0
- dference-0.1.0.dist-info/WHEEL +4 -0
- dference-0.1.0.dist-info/licenses/LICENSE +15 -0
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
|
+
]
|