Skip to content

Commit 21704a2

Browse files
author
Akhil Negi
committed
Fixing 6858 - modified datetime import
1 parent e4b7635 commit 21704a2

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

samples/04_gis_analysts_data_scientists/information-extraction-from-madison-city-crime-incident-reports-using-deep-learning.ipynb

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,22 +81,21 @@
8181
},
8282
{
8383
"cell_type": "code",
84-
"execution_count": 1,
84+
"execution_count": 3,
8585
"metadata": {},
8686
"outputs": [],
8787
"source": [
88-
"import re\n",
89-
"import os\n",
9088
"import pandas as pd\n",
9189
"import zipfile,unicodedata\n",
9290
"from itertools import repeat\n",
9391
"from pathlib import Path\n",
94-
"from datetime import datetime\n",
95-
"\n",
9692
"from arcgis.gis import GIS\n",
9793
"from arcgis.learn import prepare_data\n",
9894
"from arcgis.learn.text import EntityRecognizer\n",
99-
"from arcgis.geocoding import batch_geocode"
95+
"from arcgis.geocoding import batch_geocode\n",
96+
"import re\n",
97+
"import os\n",
98+
"import datetime"
10099
]
101100
},
102101
{
@@ -1572,7 +1571,7 @@
15721571
"outputs": [],
15731572
"source": [
15741573
"# This will take few minutes to run\n",
1575-
"madison_crime_layer = publish_to_feature(results, gis, layer_title='Madison_Crime' + str(datetime.now().microsecond), \n",
1574+
"madison_crime_layer = publish_to_feature(results, gis, layer_title='Madison_Crime' + str(datetime.datetime.now().microsecond), \n",
15761575
" tags='nlp,madison,crime', city='Madison', \n",
15771576
" region='WI', address_col='Address')"
15781577
]
@@ -1786,7 +1785,7 @@
17861785
"name": "python",
17871786
"nbconvert_exporter": "python",
17881787
"pygments_lexer": "ipython3",
1789-
"version": "3.7.9"
1788+
"version": "3.7.10"
17901789
}
17911790
},
17921791
"nbformat": 4,

0 commit comments

Comments
 (0)