Skip to content

Commit 361a202

Browse files
committed
small fixes
1 parent 8c9975f commit 361a202

File tree

2 files changed

+1330
-25
lines changed

2 files changed

+1330
-25
lines changed

guide/12-enrich-data-with-thematic-information/part1_introduction_to_geoenrichment.ipynb

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
]
1313
},
1414
{
15-
"attachments": {},
1615
"cell_type": "markdown",
1716
"metadata": {},
1817
"source": [
@@ -22,7 +21,6 @@
2221
]
2322
},
2423
{
25-
"attachments": {},
2624
"cell_type": "markdown",
2725
"metadata": {
2826
"slideshow": {
@@ -42,15 +40,13 @@
4240
]
4341
},
4442
{
45-
"attachments": {},
4643
"cell_type": "markdown",
4744
"metadata": {},
4845
"source": [
4946
"## Getting Started"
5047
]
5148
},
5249
{
53-
"attachments": {},
5450
"cell_type": "markdown",
5551
"metadata": {},
5652
"source": [
@@ -60,7 +56,6 @@
6056
]
6157
},
6258
{
63-
"attachments": {},
6459
"cell_type": "markdown",
6560
"metadata": {},
6661
"source": [
@@ -79,11 +74,10 @@
7974
"source": [
8075
"from arcgis.gis import GIS\n",
8176
"\n",
82-
"gis_pro = GIS(\"pro\")"
77+
"gis = GIS(\"pro\")"
8378
]
8479
},
8580
{
86-
"attachments": {},
8781
"cell_type": "markdown",
8882
"metadata": {},
8983
"source": [
@@ -102,11 +96,10 @@
10296
"source": [
10397
"from arcgis.gis import GIS\n",
10498
"\n",
105-
"gis_agol = GIS(profile=\"your_online_portal\")"
99+
"gis = GIS(profile=\"your_online_portal\")"
106100
]
107101
},
108102
{
109-
"attachments": {},
110103
"cell_type": "markdown",
111104
"metadata": {},
112105
"source": [
@@ -196,7 +189,7 @@
196189
"source": [
197190
"from arcgis.geoenrichment import get_countries\n",
198191
"\n",
199-
"country_df = get_countries(gis_pro, as_df=True)\n",
192+
"country_df = get_countries(gis, as_df=True)\n",
200193
"\n",
201194
"country_df"
202195
]
@@ -227,13 +220,12 @@
227220
"source": [
228221
"from arcgis.geoenrichment import Country\n",
229222
"\n",
230-
"country = Country(\"usa\", gis=gis_pro)\n",
223+
"country = Country(\"usa\", gis=gis)\n",
231224
"\n",
232225
"country"
233226
]
234227
},
235228
{
236-
"attachments": {},
237229
"cell_type": "markdown",
238230
"metadata": {},
239231
"source": [
@@ -244,7 +236,6 @@
244236
]
245237
},
246238
{
247-
"attachments": {},
248239
"cell_type": "markdown",
249240
"metadata": {},
250241
"source": [
@@ -622,7 +613,6 @@
622613
]
623614
},
624615
{
625-
"attachments": {},
626616
"cell_type": "markdown",
627617
"metadata": {},
628618
"source": [
@@ -718,7 +708,6 @@
718708
]
719709
},
720710
{
721-
"attachments": {},
722711
"cell_type": "markdown",
723712
"metadata": {},
724713
"source": [
@@ -760,7 +749,6 @@
760749
]
761750
},
762751
{
763-
"attachments": {},
764752
"cell_type": "markdown",
765753
"metadata": {},
766754
"source": [
@@ -857,7 +845,7 @@
857845
"\n",
858846
"itm_id = \"379bdcc3f34b4407bef1135956edcf4b\"\n",
859847
"candidate_df = (\n",
860-
" gis_agol.content.get(itm_id).layers[0].query(out_fields=\"loc_id\", as_df=True)\n",
848+
" gis.content.get(itm_id).layers[0].query(out_fields=\"loc_id\", as_df=True)\n",
861849
")\n",
862850
"\n",
863851
"candidate_df"
@@ -1037,14 +1025,13 @@
10371025
}
10381026
],
10391027
"source": [
1040-
"enrich_df = country.enrich(candidate_df, enrich_variables=analysis_variables)\n",
1028+
"enrich_df = enrich(candidate_df, enrich_variables=analysis_variables)\n",
10411029
"\n",
10421030
"enrich_df.info()\n",
10431031
"enrich_df"
10441032
]
10451033
},
10461034
{
1047-
"attachments": {},
10481035
"cell_type": "markdown",
10491036
"metadata": {},
10501037
"source": [
@@ -1212,7 +1199,6 @@
12121199
]
12131200
},
12141201
{
1215-
"attachments": {},
12161202
"cell_type": "markdown",
12171203
"metadata": {},
12181204
"source": [
@@ -1272,7 +1258,6 @@
12721258
]
12731259
},
12741260
{
1275-
"attachments": {},
12761261
"cell_type": "markdown",
12771262
"metadata": {},
12781263
"source": [
@@ -1286,7 +1271,6 @@
12861271
]
12871272
},
12881273
{
1289-
"attachments": {},
12901274
"cell_type": "markdown",
12911275
"metadata": {},
12921276
"source": [
@@ -1305,7 +1289,7 @@
13051289
"metadata": {
13061290
"anaconda-cloud": {},
13071291
"kernelspec": {
1308-
"display_name": "Python 3.9.11 64-bit",
1292+
"display_name": "Python 3",
13091293
"language": "python",
13101294
"name": "python3"
13111295
},
@@ -1319,7 +1303,7 @@
13191303
"name": "python",
13201304
"nbconvert_exporter": "python",
13211305
"pygments_lexer": "ipython3",
1322-
"version": "3.9.11 [MSC v.1931 64 bit (AMD64)]"
1306+
"version": "3.9.11"
13231307
},
13241308
"livereveal": {
13251309
"scroll": true

guide/12-enrich-data-with-thematic-information/part3_where_to_enrich_named_stat_areas.ipynb

Lines changed: 1322 additions & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)