Skip to content

Commit e068fad

Browse files
authored
Merge pull request Esri#2239 from Esri/user_feedback_fixes
Small doc fixes to address user feedback and link updates
2 parents 0dc5ac4 + 4232abb commit e068fad

File tree

9 files changed

+1852
-15
lines changed

9 files changed

+1852
-15
lines changed

guide/03-the-gis/accessing-and-creating-content.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -1472,7 +1472,7 @@
14721472
},
14731473
{
14741474
"cell_type": "code",
1475-
"execution_count": 12,
1475+
"execution_count": null,
14761476
"metadata": {},
14771477
"outputs": [],
14781478
"source": [
@@ -1485,7 +1485,7 @@
14851485
"root_folder = gis.content.folders.get()\n",
14861486
"earthquake_csv_item = root_folder.add(\n",
14871487
" item_properties=csv_properties, \n",
1488-
" data=csv_path,\n",
1488+
" file=csv_path,\n",
14891489
" thumbnail = thumbnail_path\n",
14901490
").result()"
14911491
]
@@ -2332,7 +2332,7 @@
23322332
"source": [
23332333
"**Note**: here, we used the `add()` method to add the `FeatureCollection` object in memory as an item on the GIS. Notice we used the `text` property to pass the JSON representation of the feature collection and the `type` property to indicate the item type. You can use the same method to publish web maps and web scenes.\n",
23342334
"\n",
2335-
"The [sample notebooks for content publishers](https://developers.arcgis.com/python/sample-notebooks/publishing-web-maps-and-web-scenes/) show how the concepts discussed here can be used to publish web maps and scenes to your GIS"
2335+
"The [sample notebooks for content publishers](https://developers.arcgis.com/python/latest/samples/publishing-web-maps-and-web-scenes/) show how the concepts discussed here can be used to publish web maps and scenes to your GIS"
23362336
]
23372337
},
23382338
{

guide/05-working-with-the-spatially-enabled-dataframe/part3_data_io_writing_data.ipynb

+1,838-1
Large diffs are not rendered by default.

guide/11-performing-network-analyses/part4_find_closest_facilities.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -2012,7 +2012,7 @@
20122012
"\n",
20132013
"[2] \"Closest Facility Analysis\", https://desktop.arcgis.com/en/arcmap/latest/extensions/network-analyst/closest-facility.htm, accessed on 09/16/2019\n",
20142014
"\n",
2015-
"[3] \"Find hospitals closest to an incident\", https://developers.arcgis.com/python/sample-notebooks/finding-hospitals-closest-to-an-incident/, accessed on 09/16/2019"
2015+
"[3] \"Find hospitals closest to an incident\", https://developers.arcgis.com/python/latest/samples/finding-hospitals-closest-to-an-incident/, accessed on 09/16/2019"
20162016
]
20172017
}
20182018
],

samples/03_org_administrators/AdminClonePortal/clone_portal.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Script: This script accompanies the notebook explained in https://developers.arcgis.com/python/sample-notebooks/clone-portal-users-groups-and-content/
1+
# Script: This script accompanies the notebook explained in https://developers.arcgis.com/python/latest/samples/clone-portal-users-groups-and-content/
22
# Purpose: Run this script to clone users, groups and items from source to a target Portal for ArcGIS.
33
# Note: This script does not copy over services, hence the web layer items continue to have the same URL pointing to
44
# services in the source server.

samples/03_org_administrators/AdminClonePortal/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Stand-alone Python script to clone portal users groups and content
2-
This folder contains the stand-alone Python script `clone_portal.py` for the accompanying sample titled [Clone Portal users, groups and content](https://developers.arcgis.com/python/sample-notebooks/clone-portal-users-groups-and-content/)
2+
This folder contains the stand-alone Python script `clone_portal.py` for the accompanying sample titled [Clone Portal users, groups and content](https://developers.arcgis.com/python/latest/samples/clone-portal-users-groups-and-content-rn/)
33

44
Running the script produces and output similar to below
55

samples/04_gis_analysts_data_scientists/automate_road_surface_investigation_using_deep_learning.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
"cell_type": "markdown",
168168
"metadata": {},
169169
"source": [
170-
"You can download pavement cracks data from the following link: https://developers.arcgis.com/python/sample-notebooks/automate-road-surface-investigation-using-deep-learning/. Extract the downloaded file and run the code below to prepare data in a format that deep learning models expect."
170+
"You can download pavement cracks data from the following link: https://developers.arcgis.com/python/latest/samples/automate-road-surface-investigation-using-deep-learning/. Extract the downloaded file and run the code below to prepare data in a format that deep learning models expect."
171171
]
172172
},
173173
{

samples/04_gis_analysts_data_scientists/model_explainability_using_shap_for_tabular_data.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"cell_type": "markdown",
6565
"metadata": {},
6666
"source": [
67-
"In this guide, we will use a pretrained model to get the predictions of energy generation for Solar Photovoltaic power plants using weather variables. We will then see, how using model explainability we can get the explanations for individual predictions. Finally, we will also see global model interpretibility. To get more details of the use case and how to train such a model please refer https://developers.arcgis.com/python/sample-notebooks/solar-energy-prediction-using-weather-variables/"
67+
"In this guide, we will use a pretrained model to get the predictions of energy generation for Solar Photovoltaic power plants using weather variables. We will then see, how using model explainability we can get the explanations for individual predictions. Finally, we will also see global model interpretibility. To get more details of the use case and how to train such a model please refer https://developers.arcgis.com/python/latest/samples/solar-energy-prediction-using-weather-variables/"
6868
]
6969
},
7070
{

samples/05_content_publishers/overwriting_feature_layers.ipynb

+5-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
" \n",
1414
"Depending on the number of features that are updated, your workflow requirements, you may adopt either or both kinds of update mechanisms.\n",
1515
"\n",
16-
"In the sample [Updating features in a feature layer](https://developers.arcgis.com/python/sample-notebooks/updating-features-in-a-feature-layer/) we explore method 1. In this sample, we explore method 2."
16+
"In the sample [Updating features in a feature layer](https://developers.arcgis.com/python/latest/samples/updating-features-in-a-feature-layer/) we explore method 1. In this sample, we explore method 2."
1717
]
1818
},
1919
{
@@ -74,7 +74,7 @@
7474
" 1. The name of the file that used to update in step 4 above should match the original file name of the item.\n",
7575
" 2. The schema -- number of layers (applicable when your original file is a file geodatabase / shape file / service definition), and the name and number of attribute columns should remain the same as before.\n",
7676
" \n",
77-
"The **method 2** explained in this sample is much simpler compared to **method 1** explained in [Updating features in a feature layer](https://developers.arcgis.com/python/sample-notebooks/updating-features-in-a-feature-layer/). However, we cannot make use of the third spreadsheet which has the additional columns for our capitals. To do that, we would first update the features through overwriting, then edit the definition of the feature layer to add new columns and then edit each feature and add the appropriate column values, similar to that explained in method 1."
77+
"The **method 2** explained in this sample is much simpler compared to **method 1** explained in [Updating features in a feature layer](https://developers.arcgis.com/python/latest/samples/updating-features-in-a-feature-layer/). However, we cannot make use of the third spreadsheet which has the additional columns for our capitals. To do that, we would first update the features through overwriting, then edit the definition of the feature layer to add new columns and then edit each feature and add the appropriate column values, similar to that explained in method 1."
7878
]
7979
},
8080
{
@@ -86,13 +86,13 @@
8686
},
8787
{
8888
"cell_type": "code",
89-
"execution_count": 97,
89+
"execution_count": null,
9090
"metadata": {},
9191
"outputs": [],
9292
"source": [
9393
"# if you've downloaded the samples or are working with your own organization\n",
9494
"# or Enterprise, you could just read the \n",
95-
"# csv data directly instead of copyting the file:\n",
95+
"# csv data directly instead of copying the file:\n",
9696
"#\n",
9797
"# my_csv = os.path.join(data_path, csv_file)\n",
9898
"\n",
@@ -997,7 +997,7 @@
997997
"metadata": {},
998998
"source": [
999999
"## Conclusion\n",
1000-
"Thus, in this sample, we observed how update a feature layer by overwriting it with new content. This method is a lot simpler than method 1 explained in [Updating features in a feature layer](https://developers.arcgis.com/python/sample-notebooks/updating-features-in-a-feature-layer/) sample. However, with this simplicity, we compromise on our ability to add new columns or change the schema of the feature layer during the update. Further, if your feature layer was updated after it was published, then those updates get overwritten when you perform the overwrite operation. To retain those edits, [extract the data](https://developers.arcgis.com/python/guide/checking-out-data-from-feature-layers-using-replicas/#Verify-Extract-capability) from the feature layer, merge your updates with this extract, then overwrite the feature layer."
1000+
"Thus, in this sample, we observed how update a feature layer by overwriting it with new content. This method is a lot simpler than method 1 explained in [Updating features in a feature layer](https://developers.arcgis.com/python/latest/samples/updating-features-in-a-feature-layer/) sample. However, with this simplicity, we compromise on our ability to add new columns or change the schema of the feature layer during the update. Further, if your feature layer was updated after it was published, then those updates get overwritten when you perform the overwrite operation. To retain those edits, [extract the data](https://developers.arcgis.com/python/guide/checking-out-data-from-feature-layers-using-replicas/#Verify-Extract-capability) from the feature layer, merge your updates with this extract, then overwrite the feature layer."
10011001
]
10021002
}
10031003
],

samples/05_content_publishers/updating_features_in_a_feature_layer.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
" \n",
1414
"Depending on the number of features that are updated, your workflow requirements, you may adopt either or both kinds of update mechanisms.\n",
1515
"\n",
16-
"In this sample, we explore the first method. For **Method 2**, refer to the sample titled [Overwriting feature layers](https://developers.arcgis.com/python/sample-notebooks/overwriting-feature-layers)\n",
16+
"In this sample, we explore the first method. For **Method 2**, refer to the sample titled [Overwriting feature layers](https://developers.arcgis.com/python/latest/samples/overwriting-feature-layers/)\n",
1717
"\n",
1818
"**Note**: To run this sample, you need the ``pandas`` library in your conda environment. If you don't have the library, install it by running the following command from cmd.exe or your shell\n",
1919
"```\n",

0 commit comments

Comments
 (0)