Skip to content

Commit 3073325

Browse files
author
Atma Mani
authored
Merge pull request Esri#785 from priyankatuteja/chennai_sample
samples update. Thanks @priyankatuteja , @shivanip32
2 parents 80476b6 + 145b70f commit 3073325

File tree

4 files changed

+498
-378
lines changed

4 files changed

+498
-378
lines changed

samples/04_gis_analysts_data_scientists/analyze_us_tornadoes.ipynb

Lines changed: 105 additions & 84 deletions
Large diffs are not rendered by default.

samples/04_gis_analysts_data_scientists/calculating_nXn_od_cost_matrix.ipynb

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,7 @@
6363
"metadata": {},
6464
"outputs": [],
6565
"source": [
66-
"portal_url = 'https://wwww.arcgis.com'\n",
67-
"#connect to your GIS\n",
68-
"user_name = '<user_name>'\n",
69-
"password = '<password>'\n",
70-
"my_gis = GIS(portal_url, user_name, password)"
66+
"my_gis = GIS('home')"
7167
]
7268
},
7369
{
@@ -213,26 +209,15 @@
213209
"# Read csv files from data:\n",
214210
"destinations_address = r\"data/destinations_address.csv\"\n",
215211
"destinations_df = pd.read_csv(destinations_address)\n",
216-
"destinations_sdf = pd.DataFrame.spatial.from_df(destinations_fc, \"Address\")\n",
212+
"destinations_sdf = pd.DataFrame.spatial.from_df(destinations_df, \"Address\")\n",
217213
"destinations_sdf.head()"
218214
]
219215
},
220216
{
221217
"cell_type": "code",
222-
"execution_count": 10,
218+
"execution_count": null,
223219
"metadata": {},
224-
"outputs": [
225-
{
226-
"data": {
227-
"text/plain": [
228-
"<FeatureSet> 3 features"
229-
]
230-
},
231-
"execution_count": 10,
232-
"metadata": {},
233-
"output_type": "execute_result"
234-
}
235-
],
220+
"outputs": [],
236221
"source": [
237222
"destinations_fset = destinations_sdf.spatial.to_featureset()\n",
238223
"destinations_fset"
@@ -627,7 +612,7 @@
627612
"name": "python",
628613
"nbconvert_exporter": "python",
629614
"pygments_lexer": "ipython3",
630-
"version": "3.6.5"
615+
"version": "3.6.12"
631616
},
632617
"toc": {
633618
"base_numbering": 1,

samples/04_gis_analysts_data_scientists/chennai_floods_analysis.ipynb

Lines changed: 386 additions & 272 deletions
Large diffs are not rendered by default.

samples/04_gis_analysts_data_scientists/designate_bike_routes_for_commuting_professionals.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,7 +1767,7 @@
17671767
}
17681768
],
17691769
"source": [
1770-
"stat_5.df # population statistics"
1770+
"stat_5.sdf # population statistics"
17711771
]
17721772
},
17731773
{
@@ -1894,7 +1894,7 @@
18941894
"name": "python",
18951895
"nbconvert_exporter": "python",
18961896
"pygments_lexer": "ipython3",
1897-
"version": "3.6.8"
1897+
"version": "3.6.12"
18981898
}
18991899
},
19001900
"nbformat": 4,

0 commit comments

Comments
 (0)