Skip to content

Commit 74d3e8d

Browse files
Merge pull request #1325 from nparavicini7/guide_fixes
HTML + TOC fixes
2 parents 7edc968 + 4143831 commit 74d3e8d

13 files changed

+126
-121
lines changed

guide/04-feature-data-and-analysis/appending-features.ipynb

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"cell_type": "markdown",
9898
"metadata": {},
9999
"source": [
100-
"### Make a GIS Connection\n",
100+
"## Make a GIS Connection\n",
101101
"\n",
102102
"You can make a GIS connection with the following syntax to continue running through the notebook:\n",
103103
"`gis = GIS(\"https://www.arcgis.com\", \"username\", \"password\")`"
@@ -116,7 +116,7 @@
116116
"cell_type": "markdown",
117117
"metadata": {},
118118
"source": [
119-
"## Append new features from File Geodatabase\n",
119+
"## Append New Features from a File Geodatabase\n",
120120
"\n",
121121
"This first example appends new features from a File Geodatabase into a hosted feature layer. For best performance and reducing the chance of errors when using [`append()`](https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#arcgis.features.FeatureLayer.append), Esri strongly recommends the schema for the source file (source) to upload matches the schema of the hosted feature service layer (target). \n",
122122
"\n",
@@ -127,7 +127,7 @@
127127
"cell_type": "markdown",
128128
"metadata": {},
129129
"source": [
130-
"#### Download the Downingtown target feature layer data\n",
130+
"### Download the target feature layer data\n",
131131
"\n",
132132
"The Downingtown Parcels File Geodatabase item exists in the GIS. You'll download the file geodatabase item containing the data you want to publish as a feature layer. "
133133
]
@@ -228,7 +228,7 @@
228228
"cell_type": "markdown",
229229
"metadata": {},
230230
"source": [
231-
"#### Publish the target Downingtown hosted feature layer\n",
231+
"### Publish the target feature layer\n",
232232
"Set properties for a new item, then add it to the portal with the zip file as the `data` argument. Publish the item to create a hosted feature layer your login owns to work though this guide. "
233233
]
234234
},
@@ -280,7 +280,7 @@
280280
"cell_type": "markdown",
281281
"metadata": {},
282282
"source": [
283-
"#### Visualize the Downingtown feature layer"
283+
"### Visualize the feature layer"
284284
]
285285
},
286286
{
@@ -406,7 +406,7 @@
406406
"cell_type": "markdown",
407407
"metadata": {},
408408
"source": [
409-
"#### Get the source Downingtown subdivision item for appending\n",
409+
"### Get the source item for appending\n",
410410
"For the append workflow to work, you need to add the source file containing the new features as an Item in your GIS. In this case this file is already uploaded as an Item for you. Next, get the item id value for this file geodatabase item containing features you want to append to the feature layer. In this case, the Schema from the file geodatabase you'll append matches the hosted feature layer."
411411
]
412412
},
@@ -444,7 +444,7 @@
444444
"cell_type": "markdown",
445445
"metadata": {},
446446
"source": [
447-
"#### `Append` the features\n",
447+
"### `Append` the features\n",
448448
"To update the target `FeatureLayer` object with a new set of features, you can call the `append()` method on it and give it the source `Item` containing the new set of features.\n",
449449
"\n",
450450
"Run `append` with the appropriate parameters to add the subdivision features from the file geodatabase item . Since the file geodatabase schema matches the schema of Downingtown parcels Feature Layer, only the `source_table_name` from the file geodatabase item is needed to insert new features."
@@ -483,7 +483,7 @@
483483
"cell_type": "markdown",
484484
"metadata": {},
485485
"source": [
486-
"#### Verify the append \n",
486+
"### Verify the append \n",
487487
"We see a message of `True`.\n",
488488
"\n",
489489
"Query the feature layer and then visualize it to verify results."
@@ -566,7 +566,7 @@
566566
"cell_type": "markdown",
567567
"metadata": {},
568568
"source": [
569-
"## Append attribute values from a CSV into a new column on a Feature Layer\n",
569+
"## Append Attribute Values from a CSV\n",
570570
"You'll now use `append` to update attribute values in a hosted feature layer from a `csv` item. In this case, the schemas **do not** match between the `csv` file (that you will upload as an item) and the hosted feature service layer you want to append values into. \n",
571571
"\n",
572572
"Instead, you will add a new attribute field to the existing hosted feature service layer, and then use the `append()` parameter `field_mappings` to indicate how fields align between the source item and target feature service layer. In addition to the `field_mappings` parameter to indicate which fields align, you'll also use the `append_fields` parameter to further restrict the operation to indicate which field you want to update."
@@ -592,7 +592,7 @@
592592
"cell_type": "markdown",
593593
"metadata": {},
594594
"source": [
595-
"#### Download the source `csv` data"
595+
"### Download the source `csv` data"
596596
]
597597
},
598598
{
@@ -670,7 +670,7 @@
670670
"cell_type": "markdown",
671671
"metadata": {},
672672
"source": [
673-
"#### Add the source `csv` item to the GIS"
673+
"### Add the source `csv` item to the GIS"
674674
]
675675
},
676676
{
@@ -710,7 +710,7 @@
710710
"cell_type": "markdown",
711711
"metadata": {},
712712
"source": [
713-
"#### Analyze the source `csv` item \n",
713+
"### Analyze the source `csv` item \n",
714714
"The `publishParameters` key value resulting from analyzing the csv file is necessary as the `source_info` parameter when `appending` from a csv file."
715715
]
716716
},
@@ -921,7 +921,7 @@
921921
"cell_type": "markdown",
922922
"metadata": {},
923923
"source": [
924-
"#### Download the target feature layer data \n",
924+
"### Download the target feature layer data \n",
925925
"Search for a shapefile on the portal named `International Boundaries`. You'll download this shapefile, perform some cleanup to simplify the data, and create a spatially enabled dataframe from it. You will publish a unique hosted feature layer that you own to investigate appending values from a csv file into a hosted feature layer."
926926
]
927927
},
@@ -1021,7 +1021,7 @@
10211021
"cell_type": "markdown",
10221022
"metadata": {},
10231023
"source": [
1024-
"#### Manage target feature layer schema"
1024+
"### Manage target feature layer schema"
10251025
]
10261026
},
10271027
{
@@ -1422,7 +1422,7 @@
14221422
"cell_type": "markdown",
14231423
"metadata": {},
14241424
"source": [
1425-
"#### Publish target countries hosted feature layer \n",
1425+
"### Publish target countries hosted feature layer \n",
14261426
"Use the `to_featurelayer()` method on the spatially enabled dataframe, then move the Feature Layer and underlying File Geodatabase item to the desired folder in the GIS.\n",
14271427
"\n",
14281428
"> **NOTE:** The first time you use the `to_featurelayer()` method to publish a Spatially Enabled DataFrame in a conda environment with `arcpy` installed, you may receive a warning message `ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().` Most often this is just a warning and the feature layer published correctly. Check the portal to ensure the layer was created."
@@ -1462,7 +1462,7 @@
14621462
"cell_type": "markdown",
14631463
"metadata": {},
14641464
"source": [
1465-
"#### Get the target hosted feature layer"
1465+
"### Get the target hosted feature layer"
14661466
]
14671467
},
14681468
{
@@ -1511,7 +1511,7 @@
15111511
"cell_type": "markdown",
15121512
"metadata": {},
15131513
"source": [
1514-
"#### Add attribute field to the target hosted feature layer\n",
1514+
"### Add attribute field to the target hosted feature layer\n",
15151515
"List all the current fields in the layer so you can use one as a field template. You'll create a copy from the template, edit its values, then add that field to the layer with the `add_to_definition()` method."
15161516
]
15171517
},
@@ -1664,7 +1664,7 @@
16641664
"cell_type": "markdown",
16651665
"metadata": {},
16661666
"source": [
1667-
"#### Add a unique index to the new attribute field \n",
1667+
"### Add a unique index to the new attribute field \n",
16681668
"\n",
16691669
"When appending data to a layer, you need a foreign key. Thus, any attribute field that matches values from the source csv to those in a hosted feature layer must have a unique index in the hosted feature layer field. The `name` field in the hosted feature layer matches values in the `Country` field in the csv table, so we need to uniquely index the `name` field. \n",
16701670
"\n",
@@ -2051,7 +2051,7 @@
20512051
"cell_type": "markdown",
20522052
"metadata": {},
20532053
"source": [
2054-
"#### Append attribute values from the `csv` item into target feature layer attribute field"
2054+
"### Append attribute values from the `csv` item into target feature layer attribute field"
20552055
]
20562056
},
20572057
{
@@ -2334,7 +2334,7 @@
23342334
"cell_type": "markdown",
23352335
"metadata": {},
23362336
"source": [
2337-
"## Insert New Features and Update Existing Features - Upsert\n",
2337+
"## Insert New Features and Update Existing Features Using Upsert\n",
23382338
"\n",
23392339
"You'll now use the `append` to combine adding new features and correcting attribute value errors. This combination of adding new features (`insert`), and changing existing feature values (`update`) is known as an `upsert`. The `append` method includes the `field_mappings`, `upsert`,`skip_updates`, `skip_inserts`, `append_fields`, and `upsert_matching_field` parameters to provide you control over how the append occurs. "
23402340
]
@@ -2359,7 +2359,7 @@
23592359
"cell_type": "markdown",
23602360
"metadata": {},
23612361
"source": [
2362-
"#### Download the target Sierra Leone feature layer data\n",
2362+
"### Download the target feature layer data\n",
23632363
"Search for a File Geodatabase of the West African Country of Sierra Leone.\n",
23642364
"\n",
23652365
"For the purposes of illustrating the `append` function in this guide, the `arcgis_python` user needs to own a copy of the hosted feature layer to append data into. You'll download a File Geodatabase item as zip file then add it to the portal and publish a unique hosted feature service from that zip file."
@@ -2419,7 +2419,7 @@
24192419
"cell_type": "markdown",
24202420
"metadata": {},
24212421
"source": [
2422-
"#### Publish the Sierra Leone target hosted feature layer"
2422+
"#### Publish the target hosted feature layer"
24232423
]
24242424
},
24252425
{
@@ -2444,7 +2444,7 @@
24442444
"cell_type": "markdown",
24452445
"metadata": {},
24462446
"source": [
2447-
"#### Visualize the target feature layer\n",
2447+
"### Visualize the target feature layer\n",
24482448
"Notice, that the Southern region is missing data. "
24492449
]
24502450
},
@@ -2505,7 +2505,7 @@
25052505
"cell_type": "markdown",
25062506
"metadata": {},
25072507
"source": [
2508-
"#### Query the feature layer to examine attribute errors\n",
2508+
"### Query the feature layer to examine attribute errors\n",
25092509
"We can see that certain features are missing from the southern part of Sierra Leone. We also can query the data to see that certain features of the Bo Chiefdom have been incorrectly labeled as being in the Eastern District. You can also see that certain Bo Chiefdoms have been incorrectly labeled as `Boao`.\n",
25102510
"\n",
25112511
"You'll use the `Append` function to both:\n",
@@ -2690,7 +2690,7 @@
26902690
"cell_type": "markdown",
26912691
"metadata": {},
26922692
"source": [
2693-
"#### Examine attribute fields and indices \n",
2693+
"### Examine attribute fields and indices \n",
26942694
"When you are appending to a target feature layer, you need a layer attribute field that has unique values to match a \n",
26952695
"field in the source item (a foreign key) from which you'll append features/values.\n",
26962696
"\n",
@@ -2820,7 +2820,7 @@
28202820
"cell_type": "markdown",
28212821
"metadata": {},
28222822
"source": [
2823-
"#### Examine the source file geodatabase"
2823+
"### Examine the source file geodatabase"
28242824
]
28252825
},
28262826
{
@@ -2982,7 +2982,7 @@
29822982
"cell_type": "markdown",
29832983
"metadata": {},
29842984
"source": [
2985-
"#### Append using `upsert` to update attribute values and add new features\n",
2985+
"### Append using `upsert` to update attribute values and add new features\n",
29862986
"\n",
29872987
"The `Chiefdoms_Southern` feature class contains edits for Bo Chiefdom features where the name is misspelled in the `Name_2` attribute and the incorrect region is labeled in the `Name_1` attribute. The feature class also contains all the missing chiefdom features to complete the Southern region.\n",
29882988
"\n",

guide/07-working-with-bigdata/04-analyze-patterns.ipynb

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"id": "8c4e8159",
2222
"metadata": {},
2323
"source": [
24-
"## Table of Contents\n",
24+
"Table of Contents\n",
2525
"* [Calculate Density](#Calculate-Density)\n",
2626
"* [Create Space Time Cube](#Create-Space-Time-Cube)\n",
2727
"* [Find Hot Spots](Find-Hot-Spots)\n",
@@ -50,7 +50,7 @@
5050
" <th><center>Description</center></th> \n",
5151
" </tr>\n",
5252
" <tr>\n",
53-
" <td><a href=\"https://enterprise.arcgis.com/en/portal/latest/use/geoanalytics-calculate-density.htm\"><p align=\"left\">calculat_density</p></a></td>\n",
53+
" <td><a href=\"https://enterprise.arcgis.com/en/portal/latest/use/geoanalytics-calculate-density.htm\"><p align=\"left\">calculate_density</p></a></td>\n",
5454
" <td><p align=\"left\">Calculates a magnitude-per-unit area from point features that fall within a neighborhood around each cell.</p></td>\n",
5555
" </tr>\n",
5656
" <tr>\n",
@@ -72,7 +72,8 @@
7272
" <tr>\n",
7373
" <td><a href=\"https://enterprise.arcgis.com/en/portal/latest/use/geoanalytics-geographically-weighted-regression.htm\"><p align=\"left\">gwr</p></a></td>\n",
7474
" <td><p align=\"left\">Performs Geographically Weighted Regression (GWR), which is a local form of linear regression that is used to model spatially varying relationships.</p></td>\n",
75-
" </tr> "
75+
" </tr> \n",
76+
"</table>"
7677
]
7778
},
7879
{
@@ -231,7 +232,7 @@
231232
}
232233
],
233234
"source": [
234-
"data_item = search_result2[0]\n",
235+
"data_item= search_result2[0]\n",
235236
"data_item"
236237
]
237238
},
@@ -547,7 +548,7 @@
547548
"id": "cfb283de",
548549
"metadata": {},
549550
"source": [
550-
"#### Create Space Time Cube"
551+
"## Create Space Time Cube"
551552
]
552553
},
553554
{
@@ -645,7 +646,7 @@
645646
"id": "e862f411",
646647
"metadata": {},
647648
"source": [
648-
"#### Find Hot Spots"
649+
"## Find Hot Spots"
649650
]
650651
},
651652
{
@@ -752,7 +753,7 @@
752753
"id": "15142614",
753754
"metadata": {},
754755
"source": [
755-
"#### Find Point Clusters"
756+
"## Find Point Clusters"
756757
]
757758
},
758759
{
@@ -875,7 +876,7 @@
875876
"id": "f865a72a",
876877
"metadata": {},
877878
"source": [
878-
"#### Forest"
879+
"## Forest"
879880
]
880881
},
881882
{
@@ -981,7 +982,7 @@
981982
"id": "26d960ee",
982983
"metadata": {},
983984
"source": [
984-
"#### GLR"
985+
"## GLR"
985986
]
986987
},
987988
{
@@ -1059,7 +1060,7 @@
10591060
"id": "42a9bcd6",
10601061
"metadata": {},
10611062
"source": [
1062-
"#### GWR"
1063+
"## GWR"
10631064
]
10641065
},
10651066
{

guide/07-working-with-bigdata/05-finding_locations.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
" <th><center>Description</center></th> \n",
4848
" </tr>\n",
4949
" <tr>\n",
50-
" <td><a href=\"https://enterprise.arcgis.com/en/portal/latest/use/geoanalytics-detect-incidents.htm\"><p align=\"left\">dtect_incidents</p></a></td>\n",
50+
" <td><a href=\"https://enterprise.arcgis.com/en/portal/latest/use/geoanalytics-detect-incidents.htm\"><p align=\"left\">detect_incidents</p></a></td>\n",
5151
" <td><p align=\"left\">Creates a layer that detects features that meet a given condition.</p></td>\n",
5252
" </tr>\n",
5353
" <tr>\n",
@@ -61,7 +61,8 @@
6161
" <tr>\n",
6262
" <td><a href=\"https://enterprise.arcgis.com/en/portal/latest/use/geoanalytics-find-similar-locations.htm\"><p align=\"left\">find_similar_locations</p></a></td>\n",
6363
" <td><p align=\"left\">Identifies the candidate features that are most similar or dissimilar to one or more input features based on feature attributes.</p></td>\n",
64-
" </tr>"
64+
" </tr>\n",
65+
"</table>"
6566
]
6667
},
6768
{

0 commit comments

Comments
 (0)