Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Commit 7ff47bf

Browse files
committed
add jupyterlab drop notebook outputs
1 parent 8b98da4 commit 7ff47bf

File tree

2 files changed

+20
-271
lines changed

2 files changed

+20
-271
lines changed

fuzzer.ipynb

+19-271
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 1,
5+
"execution_count": null,
66
"id": "ce99a589-7a2e-4b6b-a13b-1dc4a17a6fc0",
77
"metadata": {},
88
"outputs": [],
@@ -13,7 +13,7 @@
1313
},
1414
{
1515
"cell_type": "code",
16-
"execution_count": 2,
16+
"execution_count": null,
1717
"id": "3827f60f-0b87-4642-bc07-8c2625f3377a",
1818
"metadata": {},
1919
"outputs": [],
@@ -25,220 +25,29 @@
2525
},
2626
{
2727
"cell_type": "code",
28-
"execution_count": 3,
28+
"execution_count": null,
2929
"id": "17773922-39ca-4780-a001-ea731ff86f80",
3030
"metadata": {},
31-
"outputs": [
32-
{
33-
"data": {
34-
"text/html": [
35-
"<div>\n",
36-
"<style scoped>\n",
37-
" .dataframe tbody tr th:only-of-type {\n",
38-
" vertical-align: middle;\n",
39-
" }\n",
40-
"\n",
41-
" .dataframe tbody tr th {\n",
42-
" vertical-align: top;\n",
43-
" }\n",
44-
"\n",
45-
" .dataframe thead th {\n",
46-
" text-align: right;\n",
47-
" }\n",
48-
"</style>\n",
49-
"<table border=\"1\" class=\"dataframe\">\n",
50-
" <thead>\n",
51-
" <tr style=\"text-align: right;\">\n",
52-
" <th></th>\n",
53-
" <th>fruit_name</th>\n",
54-
" <th>cost</th>\n",
55-
" </tr>\n",
56-
" </thead>\n",
57-
" <tbody>\n",
58-
" <tr>\n",
59-
" <th>0</th>\n",
60-
" <td>banana</td>\n",
61-
" <td>1</td>\n",
62-
" </tr>\n",
63-
" <tr>\n",
64-
" <th>1</th>\n",
65-
" <td>apple</td>\n",
66-
" <td>3</td>\n",
67-
" </tr>\n",
68-
" <tr>\n",
69-
" <th>2</th>\n",
70-
" <td>kiwi</td>\n",
71-
" <td>5</td>\n",
72-
" </tr>\n",
73-
" <tr>\n",
74-
" <th>3</th>\n",
75-
" <td>pear</td>\n",
76-
" <td>4</td>\n",
77-
" </tr>\n",
78-
" <tr>\n",
79-
" <th>4</th>\n",
80-
" <td>kiwi</td>\n",
81-
" <td>5</td>\n",
82-
" </tr>\n",
83-
" <tr>\n",
84-
" <th>5</th>\n",
85-
" <td>pawpaw</td>\n",
86-
" <td>7</td>\n",
87-
" </tr>\n",
88-
" <tr>\n",
89-
" <th>6</th>\n",
90-
" <td>watermelon</td>\n",
91-
" <td>12</td>\n",
92-
" </tr>\n",
93-
" </tbody>\n",
94-
"</table>\n",
95-
"</div>"
96-
],
97-
"text/plain": [
98-
" fruit_name cost\n",
99-
"0 banana 1\n",
100-
"1 apple 3\n",
101-
"2 kiwi 5\n",
102-
"3 pear 4\n",
103-
"4 kiwi 5\n",
104-
"5 pawpaw 7\n",
105-
"6 watermelon 12"
106-
]
107-
},
108-
"execution_count": 3,
109-
"metadata": {},
110-
"output_type": "execute_result"
111-
}
112-
],
31+
"outputs": [],
11332
"source": [
11433
"df_price = pd.read_csv('seeds/fruit_prices_fact.csv')\n",
11534
"df_price"
11635
]
11736
},
11837
{
11938
"cell_type": "code",
120-
"execution_count": 4,
39+
"execution_count": null,
12140
"id": "2a140bcf-925b-440a-8d25-e08ba9391b9c",
12241
"metadata": {},
123-
"outputs": [
124-
{
125-
"data": {
126-
"text/html": [
127-
"<div>\n",
128-
"<style scoped>\n",
129-
" .dataframe tbody tr th:only-of-type {\n",
130-
" vertical-align: middle;\n",
131-
" }\n",
132-
"\n",
133-
" .dataframe tbody tr th {\n",
134-
" vertical-align: top;\n",
135-
" }\n",
136-
"\n",
137-
" .dataframe thead th {\n",
138-
" text-align: right;\n",
139-
" }\n",
140-
"</style>\n",
141-
"<table border=\"1\" class=\"dataframe\">\n",
142-
" <thead>\n",
143-
" <tr style=\"text-align: right;\">\n",
144-
" <th></th>\n",
145-
" <th>fruit_user_input</th>\n",
146-
" <th>quantity</th>\n",
147-
" <th>user_name</th>\n",
148-
" </tr>\n",
149-
" </thead>\n",
150-
" <tbody>\n",
151-
" <tr>\n",
152-
" <th>0</th>\n",
153-
" <td>apple</td>\n",
154-
" <td>2</td>\n",
155-
" <td>doug</td>\n",
156-
" </tr>\n",
157-
" <tr>\n",
158-
" <th>1</th>\n",
159-
" <td>anana</td>\n",
160-
" <td>1</td>\n",
161-
" <td>doug</td>\n",
162-
" </tr>\n",
163-
" <tr>\n",
164-
" <th>2</th>\n",
165-
" <td>kiwi</td>\n",
166-
" <td>1</td>\n",
167-
" <td>amy</td>\n",
168-
" </tr>\n",
169-
" <tr>\n",
170-
" <th>3</th>\n",
171-
" <td>a pull</td>\n",
172-
" <td>1</td>\n",
173-
" <td>amy</td>\n",
174-
" </tr>\n",
175-
" <tr>\n",
176-
" <th>4</th>\n",
177-
" <td>kiwee</td>\n",
178-
" <td>2</td>\n",
179-
" <td>anders</td>\n",
180-
" </tr>\n",
181-
" <tr>\n",
182-
" <th>5</th>\n",
183-
" <td>papaw</td>\n",
184-
" <td>2</td>\n",
185-
" <td>anders</td>\n",
186-
" </tr>\n",
187-
" <tr>\n",
188-
" <th>6</th>\n",
189-
" <td>pumpkin</td>\n",
190-
" <td>1</td>\n",
191-
" <td>anders</td>\n",
192-
" </tr>\n",
193-
" <tr>\n",
194-
" <th>7</th>\n",
195-
" <td>watrmln</td>\n",
196-
" <td>1</td>\n",
197-
" <td>ripu</td>\n",
198-
" </tr>\n",
199-
" <tr>\n",
200-
" <th>8</th>\n",
201-
" <td>apple</td>\n",
202-
" <td>5</td>\n",
203-
" <td>ripu</td>\n",
204-
" </tr>\n",
205-
" <tr>\n",
206-
" <th>9</th>\n",
207-
" <td>pere</td>\n",
208-
" <td>1</td>\n",
209-
" <td>azzam</td>\n",
210-
" </tr>\n",
211-
" </tbody>\n",
212-
"</table>\n",
213-
"</div>"
214-
],
215-
"text/plain": [
216-
" fruit_user_input quantity user_name\n",
217-
"0 apple 2 doug\n",
218-
"1 anana 1 doug\n",
219-
"2 kiwi 1 amy\n",
220-
"3 a pull 1 amy\n",
221-
"4 kiwee 2 anders\n",
222-
"5 papaw 2 anders\n",
223-
"6 pumpkin 1 anders\n",
224-
"7 watrmln 1 ripu\n",
225-
"8 apple 5 ripu\n",
226-
"9 pere 1 azzam"
227-
]
228-
},
229-
"execution_count": 4,
230-
"metadata": {},
231-
"output_type": "execute_result"
232-
}
233-
],
42+
"outputs": [],
23443
"source": [
23544
"df_input = pd.read_csv('seeds/fruit_user_input.csv')\n",
23645
"df_input"
23746
]
23847
},
23948
{
24049
"cell_type": "code",
241-
"execution_count": 5,
50+
"execution_count": null,
24251
"id": "ea1f2ba8-dd07-4c25-9598-c549742d8e0a",
24352
"metadata": {},
24453
"outputs": [],
@@ -259,79 +68,10 @@
25968
},
26069
{
26170
"cell_type": "code",
262-
"execution_count": 6,
71+
"execution_count": null,
26372
"id": "cc221d15-b413-4917-be06-3b22b1c1dad6",
26473
"metadata": {},
265-
"outputs": [
266-
{
267-
"data": {
268-
"text/html": [
269-
"<div>\n",
270-
"<style scoped>\n",
271-
" .dataframe tbody tr th:only-of-type {\n",
272-
" vertical-align: middle;\n",
273-
" }\n",
274-
"\n",
275-
" .dataframe tbody tr th {\n",
276-
" vertical-align: top;\n",
277-
" }\n",
278-
"\n",
279-
" .dataframe thead th {\n",
280-
" text-align: right;\n",
281-
" }\n",
282-
"</style>\n",
283-
"<table border=\"1\" class=\"dataframe\">\n",
284-
" <thead>\n",
285-
" <tr style=\"text-align: right;\">\n",
286-
" <th></th>\n",
287-
" <th>user_name</th>\n",
288-
" <th>total</th>\n",
289-
" </tr>\n",
290-
" </thead>\n",
291-
" <tbody>\n",
292-
" <tr>\n",
293-
" <th>1</th>\n",
294-
" <td>anders</td>\n",
295-
" <td>34</td>\n",
296-
" </tr>\n",
297-
" <tr>\n",
298-
" <th>4</th>\n",
299-
" <td>ripu</td>\n",
300-
" <td>27</td>\n",
301-
" </tr>\n",
302-
" <tr>\n",
303-
" <th>0</th>\n",
304-
" <td>amy</td>\n",
305-
" <td>10</td>\n",
306-
" </tr>\n",
307-
" <tr>\n",
308-
" <th>3</th>\n",
309-
" <td>doug</td>\n",
310-
" <td>7</td>\n",
311-
" </tr>\n",
312-
" <tr>\n",
313-
" <th>2</th>\n",
314-
" <td>azzam</td>\n",
315-
" <td>4</td>\n",
316-
" </tr>\n",
317-
" </tbody>\n",
318-
"</table>\n",
319-
"</div>"
320-
],
321-
"text/plain": [
322-
" user_name total\n",
323-
"1 anders 34\n",
324-
"4 ripu 27\n",
325-
"0 amy 10\n",
326-
"3 doug 7\n",
327-
"2 azzam 4"
328-
]
329-
},
330-
"execution_count": 6,
331-
"metadata": {},
332-
"output_type": "execute_result"
333-
}
334-
],
74+
"outputs": [],
33575
"source": [
33676
"df_final = (df_input\n",
33777
" # make new col, `fruit_name`, with best match against actual table\n",
@@ -347,11 +87,19 @@
34787
" )\n",
34888
"df_final"
34989
]
90+
},
91+
{
92+
"cell_type": "code",
93+
"execution_count": null,
94+
"id": "7eb5d9dc",
95+
"metadata": {},
96+
"outputs": [],
97+
"source": []
35098
}
35199
],
352100
"metadata": {
353101
"kernelspec": {
354-
"display_name": "Python 3.9.13 ('dbtpy')",
102+
"display_name": "Python 3.9.13 64-bit",
355103
"language": "python",
356104
"name": "python3"
357105
},
@@ -369,7 +117,7 @@
369117
},
370118
"vscode": {
371119
"interpreter": {
372-
"hash": "a75c8262f55743daafc6098d7b768e88187e06d46ce627852e74c04894e9aa89"
120+
"hash": "949777d72b0d2535278d3dc13498b2535136f6dfe0678499012e853ee9abcab1"
373121
}
374122
}
375123
},

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
dbt-snowflake==1.3.0b2
2+
jupyterlab==3.4.7
23
# extra features
34
sqlfluff~=1.2.1

0 commit comments

Comments
 (0)