Skip to content

Commit febee56

Browse files
resolves the comments on the PR
1 parent 430c5e1 commit febee56

File tree

1 file changed

+38
-22
lines changed

1 file changed

+38
-22
lines changed

guide/04-feature-data-and-analysis/analyzing-patterns-in-feature-data.ipynb

Lines changed: 38 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,40 +22,47 @@
2222
},
2323
{
2424
"cell_type": "code",
25-
"execution_count": 1,
25+
"execution_count": 30,
26+
"metadata": {},
27+
"outputs": [],
28+
"source": [
29+
"# Connect to GIS\n",
30+
"from arcgis.gis import GIS\n",
31+
"gis = GIS(profile=\"your_online_profile\") or GIS(profile=\"your_enterprise_profile\")"
32+
]
33+
},
34+
{
35+
"cell_type": "code",
36+
"execution_count": 31,
2637
"metadata": {},
2738
"outputs": [
2839
{
29-
"name": "stderr",
30-
"output_type": "stream",
31-
"text": [
32-
"C:\\Users\\tar12555\\AppData\\Local\\ESRI\\conda\\envs\\pyapi-dev\\lib\\site-packages\\numpy\\_distributor_init.py:30: UserWarning: loaded more than 1 DLL from .libs:\n",
33-
"C:\\Users\\tar12555\\AppData\\Local\\ESRI\\conda\\envs\\pyapi-dev\\lib\\site-packages\\numpy\\.libs\\libopenblas64__v0.3.23-246-g3d31191b-gcc_10_3_0.dll\n",
34-
"C:\\Users\\tar12555\\AppData\\Local\\ESRI\\conda\\envs\\pyapi-dev\\lib\\site-packages\\numpy\\.libs\\libopenblas64__v0.3.23-gcc_10_3_0.dll\n",
35-
" warnings.warn(\"loaded more than 1 DLL from .libs:\"\n",
36-
"C:\\Users\\tar12555\\AppData\\Local\\ESRI\\conda\\envs\\pyapi-dev\\lib\\site-packages\\scipy\\__init__.py:138: UserWarning: A NumPy version >=1.16.5 and <1.23.0 is required for this version of SciPy (detected version 1.25.2)\n",
37-
" warnings.warn(f\"A NumPy version >={np_minversion} and <{np_maxversion} is required for this version of \"\n"
38-
]
40+
"data": {
41+
"text/plain": [
42+
"[<Item title:\"chennai_rain\" type:Feature Layer Collection owner:arcgis_python>]"
43+
]
44+
},
45+
"execution_count": 31,
46+
"metadata": {},
47+
"output_type": "execute_result"
3948
}
4049
],
4150
"source": [
42-
"# Connect to GIS\n",
43-
"from arcgis.gis import GIS\n",
44-
"gis = GIS(profile=\"your_online_profile\")"
51+
"gis.content.search(\"title:chennai_rain type:Feature Service\")"
4552
]
4653
},
4754
{
4855
"cell_type": "code",
49-
"execution_count": 2,
56+
"execution_count": 22,
5057
"metadata": {},
5158
"outputs": [],
5259
"source": [
53-
"chennai_rainfall = gis.content.search(\"chennai_rain\")[0]"
60+
"chennai_rainfall = gis.content.search(\"title:chennai_rain type:Feature Service\")[0]"
5461
]
5562
},
5663
{
5764
"cell_type": "code",
58-
"execution_count": null,
65+
"execution_count": 24,
5966
"metadata": {},
6067
"outputs": [],
6168
"source": [
@@ -71,13 +78,22 @@
7178
},
7279
{
7380
"cell_type": "code",
74-
"execution_count": 6,
81+
"execution_count": null,
7582
"metadata": {},
7683
"outputs": [],
7784
"source": [
7885
"map1.add_layer(chennai_rainfall, { \"renderer\":\"ClassedSizeRenderer\", \"field_name\":\"RAINFALL\" })"
7986
]
8087
},
88+
{
89+
"cell_type": "code",
90+
"execution_count": null,
91+
"metadata": {},
92+
"outputs": [],
93+
"source": [
94+
"map1"
95+
]
96+
},
8197
{
8298
"attachments": {
8399
"image-chennai-rainfall.png": {
@@ -99,7 +115,7 @@
99115
},
100116
{
101117
"cell_type": "code",
102-
"execution_count": 7,
118+
"execution_count": 26,
103119
"metadata": {},
104120
"outputs": [
105121
{
@@ -130,7 +146,7 @@
130146
},
131147
{
132148
"cell_type": "code",
133-
"execution_count": 8,
149+
"execution_count": 27,
134150
"metadata": {},
135151
"outputs": [],
136152
"source": [
@@ -139,7 +155,7 @@
139155
},
140156
{
141157
"cell_type": "code",
142-
"execution_count": 9,
158+
"execution_count": 28,
143159
"metadata": {},
144160
"outputs": [],
145161
"source": [
@@ -191,7 +207,7 @@
191207
"name": "python",
192208
"nbconvert_exporter": "python",
193209
"pygments_lexer": "ipython3",
194-
"version": "3.9.16"
210+
"version": "3.9.18"
195211
},
196212
"toc": {
197213
"base_numbering": 1,

0 commit comments

Comments
 (0)