Skip to content

Commit b668e21

Browse files
committed
2 parents 12b9b39 + 553f3a5 commit b668e21

1 file changed

Lines changed: 67 additions & 20 deletions

File tree

examples/integrations/colab/datascreeniq_demo.ipynb

Lines changed: 67 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"metadata": {
55
"colab": {
66
"provenance": [],
7-
"toc_visible": true
7+
"toc_visible": true,
8+
"include_colab_link": true
89
},
910
"kernelspec": {
1011
"name": "python3",
@@ -15,6 +16,16 @@
1516
}
1617
},
1718
"cells": [
19+
{
20+
"cell_type": "markdown",
21+
"metadata": {
22+
"id": "view-in-github",
23+
"colab_type": "text"
24+
},
25+
"source": [
26+
"<a href=\"https://colab.research.google.com/github/AppDevIQ/datascreeniq-python/blob/main/examples/integrations/colab/datascreeniq_demo.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
27+
]
28+
},
1829
{
1930
"cell_type": "markdown",
2031
"source": [
@@ -32,14 +43,18 @@
3243
"\n",
3344
"---"
3445
],
35-
"metadata": {}
46+
"metadata": {
47+
"id": "zhZYPmoKops3"
48+
}
3649
},
3750
{
3851
"cell_type": "markdown",
3952
"source": [
4053
"## 1. Install"
4154
],
42-
"metadata": {}
55+
"metadata": {
56+
"id": "tqhrNMBCops6"
57+
}
4358
},
4459
{
4560
"cell_type": "code",
@@ -48,7 +63,9 @@
4863
"import datascreeniq as dsiq\n",
4964
"print(f\"DataScreenIQ SDK v{dsiq.__version__} installed ✓\")"
5065
],
51-
"metadata": {},
66+
"metadata": {
67+
"id": "BY2pKgfRops6"
68+
},
5269
"execution_count": null,
5370
"outputs": []
5471
},
@@ -61,7 +78,9 @@
6178
"\n",
6279
"**Option B**: Use `DemoClient()` to try without a key (simulated responses)"
6380
],
64-
"metadata": {}
81+
"metadata": {
82+
"id": "v48HSw71ops7"
83+
}
6584
},
6685
{
6786
"cell_type": "code",
@@ -73,7 +92,9 @@
7392
"client = dsiq.DemoClient()\n",
7493
"print(\"Client ready ✓\")"
7594
],
76-
"metadata": {},
95+
"metadata": {
96+
"id": "QxhB_Cmhops8"
97+
},
7798
"execution_count": null,
7899
"outputs": []
79100
},
@@ -82,7 +103,9 @@
82103
"source": [
83104
"## 3. Screen sample data — see what bad data looks like"
84105
],
85-
"metadata": {}
106+
"metadata": {
107+
"id": "AgVsZpTDops8"
108+
}
86109
},
87110
{
88111
"cell_type": "code",
@@ -103,7 +126,9 @@
103126
"print(f\"Null rates: {report.null_rates}\")\n",
104127
"print(f\"Latency: {report.latency_ms}ms\")"
105128
],
106-
"metadata": {},
129+
"metadata": {
130+
"id": "V2qIKfL8ops8"
131+
},
107132
"execution_count": null,
108133
"outputs": []
109134
},
@@ -112,7 +137,9 @@
112137
"source": [
113138
"## 4. Screen clean data — see a PASS"
114139
],
115-
"metadata": {}
140+
"metadata": {
141+
"id": "cWFa41W_ops9"
142+
}
116143
},
117144
{
118145
"cell_type": "code",
@@ -127,7 +154,9 @@
127154
"report = client.screen(clean_data, source=\"orders\")\n",
128155
"print(report.summary())"
129156
],
130-
"metadata": {},
157+
"metadata": {
158+
"id": "loJoSffbops9"
159+
},
131160
"execution_count": null,
132161
"outputs": []
133162
},
@@ -136,7 +165,9 @@
136165
"source": [
137166
"## 5. Screen a pandas DataFrame"
138167
],
139-
"metadata": {}
168+
"metadata": {
169+
"id": "oKiaew6kops9"
170+
}
140171
},
141172
{
142173
"cell_type": "code",
@@ -157,7 +188,9 @@
157188
"report = client.screen_dataframe(df, source=\"users\")\n",
158189
"print(f\"\\n{report.summary()}\")"
159190
],
160-
"metadata": {},
191+
"metadata": {
192+
"id": "hkpVyfNSops9"
193+
},
161194
"execution_count": null,
162195
"outputs": []
163196
},
@@ -166,7 +199,9 @@
166199
"source": [
167200
"## 6. Use as a pipeline guard"
168201
],
169-
"metadata": {}
202+
"metadata": {
203+
"id": "2AplPyjnops-"
204+
}
170205
},
171206
{
172207
"cell_type": "code",
@@ -183,7 +218,9 @@
183218
" print(f\" Issues: {list(e.report.issues.keys())}\")\n",
184219
" print(f\" → Route to dead-letter queue or alert team\")"
185220
],
186-
"metadata": {},
221+
"metadata": {
222+
"id": "G727B8LQops-"
223+
},
187224
"execution_count": null,
188225
"outputs": []
189226
},
@@ -194,7 +231,9 @@
194231
"\n",
195232
"Upload a CSV to Colab (click the folder icon on the left → Upload), then:"
196233
],
197-
"metadata": {}
234+
"metadata": {
235+
"id": "R_f7jseLops-"
236+
}
198237
},
199238
{
200239
"cell_type": "code",
@@ -203,7 +242,9 @@
203242
"# report = client.screen_file(\"/content/your_data.csv\", source=\"my-data\")\n",
204243
"# print(report.summary())"
205244
],
206-
"metadata": {},
245+
"metadata": {
246+
"id": "5gpleg-Aops-"
247+
},
207248
"execution_count": null,
208249
"outputs": []
209250
},
@@ -212,7 +253,9 @@
212253
"source": [
213254
"## 8. Explore the full report"
214255
],
215-
"metadata": {}
256+
"metadata": {
257+
"id": "vjfDjN0Uops-"
258+
}
216259
},
217260
{
218261
"cell_type": "code",
@@ -223,7 +266,9 @@
223266
"\n",
224267
"print(json.dumps(report.to_dict(), indent=2))"
225268
],
226-
"metadata": {},
269+
"metadata": {
270+
"id": "rx1nDGeMops-"
271+
},
227272
"execution_count": null,
228273
"outputs": []
229274
},
@@ -241,7 +286,9 @@
241286
"\n",
242287
"Questions? → [app@datascreeniq.com](mailto:app@datascreeniq.com)"
243288
],
244-
"metadata": {}
289+
"metadata": {
290+
"id": "BveJr9Mwops-"
291+
}
245292
}
246293
]
247-
}
294+
}

0 commit comments

Comments
 (0)