Fixing 6858 - modified datetime import
},
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
- "import re\n",
- "import os\n",
"import pandas as pd\n",
"import zipfile,unicodedata\n",
"from itertools import repeat\n",
"from pathlib import Path\n",
- "from datetime import datetime\n",
- "\n",
"from arcgis.gis import GIS\n",
"from arcgis.learn import prepare_data\n",
"from arcgis.learn.text import EntityRecognizer\n",
- "from arcgis.geocoding import batch_geocode"
+ "from arcgis.geocoding import batch_geocode\n",
+ "import re\n",
+ "import os\n",
+ "import datetime"
]
},
{
"outputs": [],
"source": [
"# This will take few minutes to run\n",
- "madison_crime_layer = publish_to_feature(results, gis, layer_title='Madison_Crime' + str(datetime.now().microsecond), \n",
+ "madison_crime_layer = publish_to_feature(results, gis, layer_title='Madison_Crime' + str(datetime.datetime.now().microsecond), \n",
" tags='nlp,madison,crime', city='Madison', \n",
" region='WI', address_col='Address')"
]
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.7.9"
+ "version": "3.7.10"
}
},
"nbformat": 4,
