Skip to content

Commit 2b68a9e

Browse files
committed
Updating tutorials
1 parent 289cf0b commit 2b68a9e

9 files changed

+246
-434
lines changed

tutorials/02 - Sessions.ipynb

Lines changed: 5 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
{
2626
"cell_type": "code",
27-
"execution_count": 9,
27+
"execution_count": 1,
2828
"metadata": {},
2929
"outputs": [],
3030
"source": [
@@ -41,7 +41,7 @@
4141
},
4242
{
4343
"cell_type": "code",
44-
"execution_count": 7,
44+
"execution_count": 2,
4545
"metadata": {},
4646
"outputs": [
4747
{
@@ -50,7 +50,7 @@
5050
"False"
5151
]
5252
},
53-
"execution_count": 7,
53+
"execution_count": 2,
5454
"metadata": {},
5555
"output_type": "execute_result"
5656
}
@@ -59,26 +59,6 @@
5959
"wr.s3.does_object_exist(\"s3://noaa-ghcn-pds/fake\")"
6060
]
6161
},
62-
{
63-
"cell_type": "code",
64-
"execution_count": 8,
65-
"metadata": {},
66-
"outputs": [
67-
{
68-
"data": {
69-
"text/plain": [
70-
"False"
71-
]
72-
},
73-
"execution_count": 8,
74-
"metadata": {},
75-
"output_type": "execute_result"
76-
}
77-
],
78-
"source": [
79-
"wr.s3.does_object_exist(\"s3://noaa-ghcn-pds/fake\", boto3_session=None)"
80-
]
81-
},
8262
{
8363
"cell_type": "markdown",
8464
"metadata": {},
@@ -88,27 +68,7 @@
8868
},
8969
{
9070
"cell_type": "code",
91-
"execution_count": 10,
92-
"metadata": {},
93-
"outputs": [
94-
{
95-
"data": {
96-
"text/plain": [
97-
"False"
98-
]
99-
},
100-
"execution_count": 10,
101-
"metadata": {},
102-
"output_type": "execute_result"
103-
}
104-
],
105-
"source": [
106-
"wr.s3.does_object_exist(\"s3://noaa-ghcn-pds/fake\", boto3_session=boto3.Session())"
107-
]
108-
},
109-
{
110-
"cell_type": "code",
111-
"execution_count": 11,
71+
"execution_count": 3,
11272
"metadata": {},
11373
"outputs": [
11474
{
@@ -117,7 +77,7 @@
11777
"False"
11878
]
11979
},
120-
"execution_count": 11,
80+
"execution_count": 3,
12181
"metadata": {},
12282
"output_type": "execute_result"
12383
}

tutorials/03 - Amazon S3.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@
7979
"metadata": {},
8080
"outputs": [
8181
{
82-
"name": "stdout",
82+
"name": "stdin",
8383
"output_type": "stream",
8484
"text": [
85-
"········\n"
85+
" ··········································\n"
8686
]
8787
}
8888
],
@@ -1147,7 +1147,7 @@
11471147
},
11481148
{
11491149
"cell_type": "code",
1150-
"execution_count": 20,
1150+
"execution_count": 19,
11511151
"metadata": {},
11521152
"outputs": [],
11531153
"source": [
@@ -1176,4 +1176,4 @@
11761176
},
11771177
"nbformat": 4,
11781178
"nbformat_minor": 4
1179-
}
1179+
}

tutorials/04 - Parquet Datasets.ipynb

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -184,31 +184,31 @@
184184
" <tbody>\n",
185185
" <tr>\n",
186186
" <th>0</th>\n",
187-
" <td>3</td>\n",
188-
" <td>bar</td>\n",
189-
" <td>2020-01-03</td>\n",
190-
" </tr>\n",
191-
" <tr>\n",
192-
" <th>1</th>\n",
193187
" <td>1</td>\n",
194188
" <td>foo</td>\n",
195189
" <td>2020-01-01</td>\n",
196190
" </tr>\n",
197191
" <tr>\n",
198-
" <th>2</th>\n",
192+
" <th>1</th>\n",
199193
" <td>2</td>\n",
200194
" <td>boo</td>\n",
201195
" <td>2020-01-02</td>\n",
202196
" </tr>\n",
197+
" <tr>\n",
198+
" <th>2</th>\n",
199+
" <td>3</td>\n",
200+
" <td>bar</td>\n",
201+
" <td>2020-01-03</td>\n",
202+
" </tr>\n",
203203
" </tbody>\n",
204204
"</table>\n",
205205
"</div>"
206206
],
207207
"text/plain": [
208208
" id value date\n",
209-
"0 3 bar 2020-01-03\n",
210-
"1 1 foo 2020-01-01\n",
211-
"2 2 boo 2020-01-02"
209+
"0 1 foo 2020-01-01\n",
210+
"1 2 boo 2020-01-02\n",
211+
"2 3 bar 2020-01-03"
212212
]
213213
},
214214
"execution_count": 4,
@@ -478,13 +478,6 @@
478478
"\n",
479479
"wr.s3.read_parquet(path, dataset=True)"
480480
]
481-
},
482-
{
483-
"cell_type": "code",
484-
"execution_count": null,
485-
"metadata": {},
486-
"outputs": [],
487-
"source": []
488481
}
489482
],
490483
"metadata": {

tutorials/05 - Glue Catalog.ipynb

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -293,27 +293,14 @@
293293
" </tr>\n",
294294
" </thead>\n",
295295
" <tbody>\n",
296-
" <tr>\n",
297-
" <th>0</th>\n",
298-
" <td>awswrangler_test</td>\n",
299-
" <td>boston</td>\n",
300-
" <td>This is a copy of UCI ML housing dataset. http...</td>\n",
301-
" <td>crim, zn, indus, chas, nox, rm, age, dis, rad,...</td>\n",
302-
" <td></td>\n",
303-
" </tr>\n",
304296
" </tbody>\n",
305297
"</table>\n",
306298
"</div>"
307299
],
308300
"text/plain": [
309-
" Database Table \\\n",
310-
"0 awswrangler_test boston \n",
311-
"\n",
312-
" Description \\\n",
313-
"0 This is a copy of UCI ML housing dataset. http... \n",
314-
"\n",
315-
" Columns Partitions \n",
316-
"0 crim, zn, indus, chas, nox, rm, age, dis, rad,... "
301+
"Empty DataFrame\n",
302+
"Columns: [Database, Table, Description, Columns, Partitions]\n",
303+
"Index: []"
317304
]
318305
},
319306
"execution_count": 5,
@@ -339,11 +326,8 @@
339326
"outputs": [],
340327
"source": [
341328
"desc = \"\"\"This is a copy of UCI ML housing dataset. https://archive.ics.uci.edu/ml/machine-learning-databases/housing/\n",
342-
"\n",
343329
"This dataset was taken from the StatLib library which is maintained at Carnegie Mellon University.\n",
344-
"\n",
345330
"The Boston house-price data of Harrison, D. and Rubinfeld, D.L. ‘Hedonic prices and the demand for clean air’, J. Environ. Economics & Management, vol.5, 81-102, 1978. Used in Belsley, Kuh & Welsch, ‘Regression diagnostics …’, Wiley, 1980. N.B. Various transformations are used in the table on pages 244-261 of the latter.\n",
346-
"\n",
347331
"The Boston house-price data has been used in many machine learning papers that address regression problems.\n",
348332
"\"\"\"\n",
349333
"\n",

0 commit comments

Comments
 (0)