diff --git a/guide/05-working-with-the-spatially-enabled-dataframe/visualizing-data-with-the-spatially-enabled-dataframe.ipynb b/guide/05-working-with-the-spatially-enabled-dataframe/visualizing-data-with-the-spatially-enabled-dataframe.ipynb
index 7dab7cb1f..0573fa4d1 100644
--- a/guide/05-working-with-the-spatially-enabled-dataframe/visualizing-data-with-the-spatially-enabled-dataframe.ipynb
+++ b/guide/05-working-with-the-spatially-enabled-dataframe/visualizing-data-with-the-spatially-enabled-dataframe.ipynb
@@ -69,26 +69,17 @@
" \n",
" \n",
" \n",
" \n",
@@ -96,158 +87,103 @@
" \n",
- " FID \n",
+ " OBJECTID \n",
" NAME \n",
" CLASS \n",
- " ST \n",
- " STFIPS \n",
- " PLACEFIPS \n",
- " CAPITAL \n",
- " POP_CLASS \n",
+ " STATE_ABBR \n",
+ " STATE_FIPS \n",
+ " PLACE_FIPS \n",
" POPULATION \n",
- " POP2010 \n",
- " ... \n",
- " MARHH_NO_C \n",
- " MHH_CHILD \n",
- " FHH_CHILD \n",
- " FAMILIES \n",
- " AVE_FAM_SZ \n",
- " HSE_UNITS \n",
- " VACANT \n",
- " OWNER_OCC \n",
- " RENTER_OCC \n",
+ " POP_CLASS \n",
+ " POP_SQMI \n",
+ " SQMI \n",
+ " CAPITAL \n",
" SHAPE \n",
"
5 rows × 50 columns
\n", "" ], "text/plain": [ - " FID NAME CLASS ST STFIPS PLACEFIPS CAPITAL POP_CLASS POPULATION \\\n", - "0 1 Ammon city ID 16 1601990 6 15181 \n", - "1 2 Blackfoot city ID 16 1607840 6 11946 \n", - "2 4 Burley city ID 16 1611260 6 10727 \n", - "3 6 Chubbuck city ID 16 1614680 6 14655 \n", - "4 12 Jerome city ID 16 1641320 6 11403 \n", + " OBJECTID NAME CLASS STATE_ABBR STATE_FIPS PLACE_FIPS \\\n", + "0 1 Alabaster city AL 01 0100820 \n", + "1 2 Albertville city AL 01 0100988 \n", + "2 3 Alexander City city AL 01 0101132 \n", + "3 4 Anniston city AL 01 0101852 \n", + "4 5 Athens city AL 01 0102956 \n", "\n", - " POP2010 ... MARHH_NO_C MHH_CHILD FHH_CHILD FAMILIES AVE_FAM_SZ \\\n", - "0 13816 ... 1131 106 335 3352 3.61 \n", - "1 11899 ... 1081 174 381 2958 3.31 \n", - "2 10345 ... 861 139 358 2499 3.37 \n", - "3 13922 ... 1281 172 370 3586 3.4 \n", - "4 10890 ... 779 210 385 2640 3.44 \n", - "\n", - " HSE_UNITS VACANT OWNER_OCC RENTER_OCC \\\n", - "0 4747 271 3205 1271 \n", - "1 4547 318 2788 1441 \n", - "2 3885 241 2183 1461 \n", - "3 4961 229 3324 1408 \n", - "4 3985 292 2219 1474 \n", + " POPULATION POP_CLASS POP_SQMI SQMI CAPITAL \\\n", + "0 33284 6 1300.7 25.59 \n", + "1 22386 6 827.9 27.04 \n", + "2 14843 6 337.4 43.99 \n", + "3 21564 6 469.9 45.89 \n", + "4 25406 6 625.8 40.6 \n", "\n", " SHAPE \n", - "0 {\"x\": -12462673.723706165, \"y\": 5384674.994080... \n", - "1 {\"x\": -12506251.313993266, \"y\": 5341537.793529... \n", - "2 {\"x\": -12667411.402393516, \"y\": 5241722.820606... \n", - "3 {\"x\": -12520053.904151963, \"y\": 5300220.333409... \n", - "4 {\"x\": -12747828.64784961, \"y\": 5269214.8197742... \n", - "\n", - "[5 rows x 50 columns]" + "0 {\"x\": -86.81782028299995, \"y\": 33.244497706000... \n", + "1 {\"x\": -86.21204767999996, \"y\": 34.264208442000... \n", + "2 {\"x\": -85.95631375099998, \"y\": 32.943094153000... \n", + "3 {\"x\": -85.81985578299998, \"y\": 33.656500677000... \n", + "4 {\"x\": -86.95079502699997, \"y\": 34.784837689000... " ] }, "execution_count": 1, @@ -259,13 +195,12 @@ "from arcgis import GIS\n", "\n", "gis = GIS()\n", - "# create an anonymous connection to ArcGIS Online and get a public item\n", - "item = gis.content.search(\n", - " \"USA Major Cities\", item_type=\"Feature layer\", outside_org=True)[0]\n", + "# create an anonymous connection to ArcGIS Online and get a public item for \"USA Major Cities\"\n", + "item = gis.content.get(\"9df5e769bfe8412b8de36a2e618c7672\")\n", "flayer = item.layers[0]\n", "\n", - "# Specify a SQL query and get a sub-set of the original data as a DataFrame\n", - "df = flayer.query(where=\"AGE_45_54 < 1500\").sdf\n", + "# Query the data as a Spatially Enabled DataFrame\n", + "df = flayer.query().sdf\n", "\n", "# Visualize the top 5 records\n", "df.head()" @@ -330,7 +265,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 4, "metadata": {}, "outputs": [ { @@ -339,7 +274,7 @@ "True" ] }, - "execution_count": 6, + "execution_count": 4, "metadata": {}, "output_type": "execute_result" } @@ -383,7 +318,7 @@ }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 7, "metadata": {}, "outputs": [], "source": [ @@ -400,7 +335,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 8, "metadata": {}, "outputs": [ { @@ -409,7 +344,7 @@ "True" ] }, - "execution_count": 11, + "execution_count": 8, "metadata": {}, "output_type": "execute_result" } @@ -469,7 +404,7 @@ }, { "cell_type": "code", - "execution_count": 16, + "execution_count": 10, "metadata": {}, "outputs": [], "source": [ @@ -486,7 +421,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 11, "metadata": {}, "outputs": [ { @@ -495,7 +430,7 @@ "True" ] }, - "execution_count": 15, + "execution_count": 11, "metadata": {}, "output_type": "execute_result" } @@ -506,13 +441,13 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 37, "metadata": {}, "outputs": [], "source": [ "renderer_manager = m3.content.renderer(0)\n", "smm = renderer_manager.smart_mapping()\n", - "smm.class_breaks_renderer(break_type=\"size\", field=\"POP2010\")" + "smm.class_breaks_renderer(break_type=\"size\", field=\"POPULATION\")" ] }, { @@ -532,7 +467,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 13, "metadata": {}, "outputs": [], "source": [ @@ -543,7 +478,7 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": 14, "metadata": {}, "outputs": [], "source": [ @@ -552,25 +487,63 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": 15, "metadata": {}, "outputs": [ { "data": { "image/svg+xml": [ - "" + "" ], "text/plain": [ - "{'rings': [[[-101.562827321, 33.835168202],\n", - " [-101.561796784, 34.308844809],\n", - " [-101.4689124, 34.309600319],\n", - " [-101.048392125, 34.312330806],\n", - " [-101.046427302, 33.8364457930001],\n", - " [-101.562827321, 33.835168202]]],\n", + "{'rings': [[[-99.4713465139999, 33.8277033950001],\n", + " [-99.4692319769999, 33.731749881],\n", + " [-99.4846210919999, 33.7427359120001],\n", + " [-99.4943949079999, 33.7677865840001],\n", + " [-99.520885111, 33.771990223],\n", + " [-99.524120221, 33.784734794],\n", + " [-99.544575305, 33.783456788],\n", + " [-99.5478179789999, 33.79620141],\n", + " [-99.568288294, 33.7912765040001],\n", + " [-99.5798397139999, 33.801320375],\n", + " [-99.592626712, 33.785909088],\n", + " [-99.603064294, 33.7982227000001],\n", + " [-99.650497989, 33.817924813],\n", + " [-99.6654442829999, 33.8120577980001],\n", + " [-99.6935825799999, 33.8248670200001],\n", + " [-99.703081109, 33.7985192790001],\n", + " [-99.710268298, 33.7985382910001],\n", + " [-99.717386898, 33.8158337950001],\n", + " [-99.72629051, 33.7994880140001],\n", + " [-99.735652226, 33.808601122],\n", + " [-99.752261792, 33.798637081],\n", + " [-99.7538490159999, 33.8213723200001],\n", + " [-99.769344796, 33.814585783],\n", + " [-99.8080195159999, 33.820566715],\n", + " [-99.823507577, 33.8146805850001],\n", + " [-99.8389502059999, 33.833341488],\n", + " [-99.999828894, 33.8325460880001],\n", + " [-100.002033881, 33.842547998],\n", + " [-100.060088181, 33.8411667990001],\n", + " [-100.055391886, 34.227977304],\n", + " [-100.032060383, 34.238894798],\n", + " [-100.013161699, 34.227535312],\n", + " [-99.999825008, 34.229354981],\n", + " [-99.77352072, 34.090527718],\n", + " [-99.720250522, 34.0958651920001],\n", + " [-99.672595986, 34.0848339880001],\n", + " [-99.648700078, 34.095671704],\n", + " [-99.560692423, 34.0617380900001],\n", + " [-99.5468294029999, 34.0621387940001],\n", + " [-99.528991511, 34.077069495],\n", + " [-99.511245001, 34.076993499],\n", + " [-99.49079748, 34.0664539150001],\n", + " [-99.475210111, 34.0750216820001],\n", + " [-99.4713465139999, 33.8277033950001]]],\n", " 'spatialReference': {'wkid': 4326, 'latestWkid': 4326}}" ] }, - "execution_count": 28, + "execution_count": 15, "metadata": {}, "output_type": "execute_result" } @@ -593,7 +566,7 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": 16, "metadata": {}, "outputs": [], "source": [ @@ -625,7 +598,7 @@ }, { "cell_type": "code", - "execution_count": 30, + "execution_count": 17, "metadata": {}, "outputs": [], "source": [ @@ -725,7 +698,7 @@ }, { "cell_type": "code", - "execution_count": 32, + "execution_count": 19, "metadata": {}, "outputs": [], "source": [ @@ -744,7 +717,7 @@ }, { "cell_type": "code", - "execution_count": 33, + "execution_count": 20, "metadata": {}, "outputs": [ { @@ -753,7 +726,7 @@ "True" ] }, - "execution_count": 33, + "execution_count": 20, "metadata": {}, "output_type": "execute_result" } @@ -775,7 +748,7 @@ }, { "cell_type": "code", - "execution_count": 39, + "execution_count": 22, "metadata": {}, "outputs": [ { @@ -799,7 +772,7 @@ " \n", "