pointblank 0.8.7__py3-none-any.whl → 0.9.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.
- pointblank/_constants.py +11 -10
- pointblank/_typing.py +19 -3
- pointblank/data/api-docs.txt +716 -49
- pointblank/datascan.py +4 -4
- pointblank/draft.py +1 -1
- pointblank/thresholds.py +10 -0
- pointblank/validate.py +1061 -48
- {pointblank-0.8.7.dist-info → pointblank-0.9.0.dist-info}/METADATA +6 -2
- {pointblank-0.8.7.dist-info → pointblank-0.9.0.dist-info}/RECORD +12 -12
- {pointblank-0.8.7.dist-info → pointblank-0.9.0.dist-info}/WHEEL +1 -1
- {pointblank-0.8.7.dist-info → pointblank-0.9.0.dist-info}/licenses/LICENSE +0 -0
- {pointblank-0.8.7.dist-info → pointblank-0.9.0.dist-info}/top_level.txt +0 -0
pointblank/datascan.py
CHANGED
|
@@ -857,9 +857,9 @@ def col_summary_tbl(data: FrameT | Any, tbl_name: str | None = None) -> GT:
|
|
|
857
857
|
```{python}
|
|
858
858
|
import pointblank as pb
|
|
859
859
|
|
|
860
|
-
|
|
860
|
+
small_table = pb.load_dataset(dataset="small_table", tbl_type="polars")
|
|
861
861
|
|
|
862
|
-
pb.col_summary_tbl(data=
|
|
862
|
+
pb.col_summary_tbl(data=small_table)
|
|
863
863
|
```
|
|
864
864
|
|
|
865
865
|
This table used above was a Polars DataFrame, but the `col_summary_tbl()` function works with
|
|
@@ -867,9 +867,9 @@ def col_summary_tbl(data: FrameT | Any, tbl_name: str | None = None) -> GT:
|
|
|
867
867
|
Here's an example using a DuckDB table handled by Ibis:
|
|
868
868
|
|
|
869
869
|
```{python}
|
|
870
|
-
|
|
870
|
+
nycflights = pb.load_dataset(dataset="nycflights", tbl_type="duckdb")
|
|
871
871
|
|
|
872
|
-
pb.col_summary_tbl(data=
|
|
872
|
+
pb.col_summary_tbl(data=nycflights, tbl_name="nycflights")
|
|
873
873
|
```
|
|
874
874
|
"""
|
|
875
875
|
|
pointblank/draft.py
CHANGED
|
@@ -119,7 +119,7 @@ class DraftValidation:
|
|
|
119
119
|
data = pb.load_dataset(dataset="nycflights", tbl_type="duckdb")
|
|
120
120
|
|
|
121
121
|
# Draft a validation plan for the "nycflights" table
|
|
122
|
-
pb.DraftValidation(data=
|
|
122
|
+
pb.DraftValidation(data=data, model="anthropic:claude-3-5-sonnet-latest")
|
|
123
123
|
```
|
|
124
124
|
|
|
125
125
|
The output will be a drafted validation plan for the `"nycflights"` table and this will appear
|
pointblank/thresholds.py
CHANGED
|
@@ -452,6 +452,11 @@ class Actions:
|
|
|
452
452
|
all three thresholds are exceeded in step 3, the 'warning' action of executing the function
|
|
453
453
|
occurs (resulting in a message being printed to the console). If actions were set for the other
|
|
454
454
|
two threshold levels, they would also be executed.
|
|
455
|
+
|
|
456
|
+
See Also
|
|
457
|
+
--------
|
|
458
|
+
The [`get_action_metadata()`](`pointblank.get_action_metadata`) function, which can be used to
|
|
459
|
+
retrieve metadata about the step where the action is executed.
|
|
455
460
|
"""
|
|
456
461
|
|
|
457
462
|
warning: str | Callable | list[str | Callable] | None = None
|
|
@@ -589,6 +594,11 @@ class FinalActions:
|
|
|
589
594
|
.interrogate()
|
|
590
595
|
)
|
|
591
596
|
```
|
|
597
|
+
|
|
598
|
+
See Also
|
|
599
|
+
--------
|
|
600
|
+
The [`get_validation_summary()`](`pointblank.get_validation_summary`) function, which can be
|
|
601
|
+
used to retrieve the summary of the validation results.
|
|
592
602
|
"""
|
|
593
603
|
|
|
594
604
|
actions: list | str | Callable
|