Skip to content

Commit 5d46257

Browse files
committed
move all imports to top
1 parent 9939d9f commit 5d46257

File tree

1 file changed

+21
-29
lines changed

1 file changed

+21
-29
lines changed

samples/04_gis_analysts_data_scientists/analyze_patterns_in_construction_permits_part2.ipynb

Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,38 @@
3333
"## Aggregate points"
3434
]
3535
},
36+
{
37+
"cell_type": "code",
38+
"execution_count": null,
39+
"metadata": {},
40+
"outputs": [],
41+
"source": [
42+
"from datetime import datetime as dt\n",
43+
"\n",
44+
"import pandas as pd\n",
45+
"from arcgis.features.enrich_data import enrich_layer\n",
46+
"from arcgis.features.summarize_data import aggregate_points\n",
47+
"from arcgis.gis import GIS"
48+
]
49+
},
3650
{
3751
"cell_type": "code",
3852
"execution_count": 2,
3953
"metadata": {},
4054
"outputs": [],
4155
"source": [
42-
"from arcgis import GIS\n",
4356
"gis = GIS()\n",
4457
"# import warnings\n",
4558
"# warnings.filterwarnings(\"ignore\")"
4659
]
4760
},
61+
{
62+
"cell_type": "code",
63+
"execution_count": null,
64+
"metadata": {},
65+
"outputs": [],
66+
"source": []
67+
},
4868
{
4969
"cell_type": "code",
5070
"execution_count": 3,
@@ -169,16 +189,6 @@
169189
"Next, you'll use this layer to aggregate permit points. By default, the parameters are set to use the ZIP Codes as the area layer, the permits as the layer to be aggregated, and the layer style to be based on permit count. These parameters are exactly what you want."
170190
]
171191
},
172-
{
173-
"cell_type": "code",
174-
"execution_count": 7,
175-
"metadata": {},
176-
"outputs": [],
177-
"source": [
178-
"from arcgis.features.summarize_data import aggregate_points\n",
179-
"from datetime import datetime as dt"
180-
]
181-
},
182192
{
183193
"cell_type": "code",
184194
"execution_count": 8,
@@ -279,15 +289,6 @@
279289
"The new layer looks like a point layer, but it's actually a polygon layer with a point symbology. Each point represents the number of permits per ZIP Code area. Larger points indicate ZIP Codes with more permits."
280290
]
281291
},
282-
{
283-
"cell_type": "code",
284-
"execution_count": 11,
285-
"metadata": {},
286-
"outputs": [],
287-
"source": [
288-
"import pandas as pd"
289-
]
290-
},
291292
{
292293
"cell_type": "code",
293294
"execution_count": 16,
@@ -569,15 +570,6 @@
569570
"Are there demographic characteristics about the Clarksburg ZIP Code that contributed to its high growth? If so, are there other areas with those characteristics that may experience growth in the future? To answer these questions, you'll use the **Enrich Data** analysis tool. This tool adds demographic attributes of your choice to your data. Specifically, you'll add Tapestry information to each ZIP Code. <a href=\"https://doc.arcgis.com/en/esri-demographics/latest/regional-data/tapestry-segmentation.htm\">Tapestry</a> is a summary of many demographic and socioeconomic variables, including age groups and lifestyle choices. It'll teach you more about the types of people who live in your area of interest and help you better understand the reasons why growth happened where it did."
570571
]
571572
},
572-
{
573-
"cell_type": "code",
574-
"execution_count": 22,
575-
"metadata": {},
576-
"outputs": [],
577-
"source": [
578-
"from arcgis.features.enrich_data import enrich_layer"
579-
]
580-
},
581573
{
582574
"cell_type": "markdown",
583575
"metadata": {},

0 commit comments

Comments
 (0)