OD matrix sample update
"metadata": {},
"outputs": [],
"source": [
- "portal_url = 'https://wwww.arcgis.com'\n",
- "#connect to your GIS\n",
- "user_name = '<user_name>'\n",
- "password = '<password>'\n",
- "my_gis = GIS(portal_url, user_name, password)"
+ "my_gis = GIS('home')"
]
},
{
"# Read csv files from data:\n",
"destinations_address = r\"data/destinations_address.csv\"\n",
"destinations_df = pd.read_csv(destinations_address)\n",
- "destinations_sdf = pd.DataFrame.spatial.from_df(destinations_fc, \"Address\")\n",
+ "destinations_sdf = pd.DataFrame.spatial.from_df(destinations_df, \"Address\")\n",
"destinations_sdf.head()"
]
},
{
"cell_type": "code",
- "execution_count": 10,
+ "execution_count": null,
"metadata": {},
- "outputs": [
- {
- "data": {
- "text/plain": [
- "<FeatureSet> 3 features"
- ]
- },
- "execution_count": 10,
- "metadata": {},
- "output_type": "execute_result"
- }
- ],
+ "outputs": [],
"source": [
"destinations_fset = destinations_sdf.spatial.to_featureset()\n",
"destinations_fset"
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.6.5"
+ "version": "3.6.12"
},
"toc": {
"base_numbering": 1,
