You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+113Lines changed: 113 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,119 @@ One import, one line. A clean, sorted DataFrame you can read or feed into the ne
81
81
82
82
## Examples
83
83
84
+
These are short, recipe-style examples that go beyond the one-liner above and are intentionally not covered in the [documentation](https://data-centt.github.io/percentify/documentation/). The docs show each function in isolation; these show how to chain them into a real workflow.
85
+
86
+
### A 30-second data-quality gate
87
+
88
+
Drop this into CI to block training on a dataset that isn't ready:
89
+
90
+
```python
91
+
import pandas as pd
92
+
from percentify import profiler
93
+
94
+
df = pd.read_parquet("train.parquet")
95
+
report = profiler(df, target="label")
96
+
97
+
assert report.errors.empty, report.to_frame()
98
+
assert report.health >=80, f"health too low: {report.health}"
99
+
```
100
+
101
+
### Rank correlations by significance
102
+
103
+
Pull the pairs that are both strong *and* unlikely to be noise:
0 commit comments