|
12 | 12 | ]
|
13 | 13 | },
|
14 | 14 | {
|
15 |
| - "attachments": {}, |
16 | 15 | "cell_type": "markdown",
|
17 | 16 | "metadata": {},
|
18 | 17 | "source": [
|
|
22 | 21 | ]
|
23 | 22 | },
|
24 | 23 | {
|
25 |
| - "attachments": {}, |
26 | 24 | "cell_type": "markdown",
|
27 | 25 | "metadata": {
|
28 | 26 | "slideshow": {
|
|
42 | 40 | ]
|
43 | 41 | },
|
44 | 42 | {
|
45 |
| - "attachments": {}, |
46 | 43 | "cell_type": "markdown",
|
47 | 44 | "metadata": {},
|
48 | 45 | "source": [
|
49 | 46 | "## Getting Started"
|
50 | 47 | ]
|
51 | 48 | },
|
52 | 49 | {
|
53 |
| - "attachments": {}, |
54 | 50 | "cell_type": "markdown",
|
55 | 51 | "metadata": {},
|
56 | 52 | "source": [
|
|
60 | 56 | ]
|
61 | 57 | },
|
62 | 58 | {
|
63 |
| - "attachments": {}, |
64 | 59 | "cell_type": "markdown",
|
65 | 60 | "metadata": {},
|
66 | 61 | "source": [
|
|
79 | 74 | "source": [
|
80 | 75 | "from arcgis.gis import GIS\n",
|
81 | 76 | "\n",
|
82 |
| - "gis_pro = GIS(\"pro\")" |
| 77 | + "gis = GIS(\"pro\")" |
83 | 78 | ]
|
84 | 79 | },
|
85 | 80 | {
|
86 |
| - "attachments": {}, |
87 | 81 | "cell_type": "markdown",
|
88 | 82 | "metadata": {},
|
89 | 83 | "source": [
|
|
102 | 96 | "source": [
|
103 | 97 | "from arcgis.gis import GIS\n",
|
104 | 98 | "\n",
|
105 |
| - "gis_agol = GIS(profile=\"your_online_portal\")" |
| 99 | + "gis = GIS(profile=\"your_online_portal\")" |
106 | 100 | ]
|
107 | 101 | },
|
108 | 102 | {
|
109 |
| - "attachments": {}, |
110 | 103 | "cell_type": "markdown",
|
111 | 104 | "metadata": {},
|
112 | 105 | "source": [
|
|
196 | 189 | "source": [
|
197 | 190 | "from arcgis.geoenrichment import get_countries\n",
|
198 | 191 | "\n",
|
199 |
| - "country_df = get_countries(gis_pro, as_df=True)\n", |
| 192 | + "country_df = get_countries(gis, as_df=True)\n", |
200 | 193 | "\n",
|
201 | 194 | "country_df"
|
202 | 195 | ]
|
|
227 | 220 | "source": [
|
228 | 221 | "from arcgis.geoenrichment import Country\n",
|
229 | 222 | "\n",
|
230 |
| - "country = Country(\"usa\", gis=gis_pro)\n", |
| 223 | + "country = Country(\"usa\", gis=gis)\n", |
231 | 224 | "\n",
|
232 | 225 | "country"
|
233 | 226 | ]
|
234 | 227 | },
|
235 | 228 | {
|
236 |
| - "attachments": {}, |
237 | 229 | "cell_type": "markdown",
|
238 | 230 | "metadata": {},
|
239 | 231 | "source": [
|
|
244 | 236 | ]
|
245 | 237 | },
|
246 | 238 | {
|
247 |
| - "attachments": {}, |
248 | 239 | "cell_type": "markdown",
|
249 | 240 | "metadata": {},
|
250 | 241 | "source": [
|
|
622 | 613 | ]
|
623 | 614 | },
|
624 | 615 | {
|
625 |
| - "attachments": {}, |
626 | 616 | "cell_type": "markdown",
|
627 | 617 | "metadata": {},
|
628 | 618 | "source": [
|
|
718 | 708 | ]
|
719 | 709 | },
|
720 | 710 | {
|
721 |
| - "attachments": {}, |
722 | 711 | "cell_type": "markdown",
|
723 | 712 | "metadata": {},
|
724 | 713 | "source": [
|
|
760 | 749 | ]
|
761 | 750 | },
|
762 | 751 | {
|
763 |
| - "attachments": {}, |
764 | 752 | "cell_type": "markdown",
|
765 | 753 | "metadata": {},
|
766 | 754 | "source": [
|
|
857 | 845 | "\n",
|
858 | 846 | "itm_id = \"379bdcc3f34b4407bef1135956edcf4b\"\n",
|
859 | 847 | "candidate_df = (\n",
|
860 |
| - " gis_agol.content.get(itm_id).layers[0].query(out_fields=\"loc_id\", as_df=True)\n", |
| 848 | + " gis.content.get(itm_id).layers[0].query(out_fields=\"loc_id\", as_df=True)\n", |
861 | 849 | ")\n",
|
862 | 850 | "\n",
|
863 | 851 | "candidate_df"
|
|
1037 | 1025 | }
|
1038 | 1026 | ],
|
1039 | 1027 | "source": [
|
1040 |
| - "enrich_df = country.enrich(candidate_df, enrich_variables=analysis_variables)\n", |
| 1028 | + "enrich_df = enrich(candidate_df, enrich_variables=analysis_variables)\n", |
1041 | 1029 | "\n",
|
1042 | 1030 | "enrich_df.info()\n",
|
1043 | 1031 | "enrich_df"
|
1044 | 1032 | ]
|
1045 | 1033 | },
|
1046 | 1034 | {
|
1047 |
| - "attachments": {}, |
1048 | 1035 | "cell_type": "markdown",
|
1049 | 1036 | "metadata": {},
|
1050 | 1037 | "source": [
|
|
1212 | 1199 | ]
|
1213 | 1200 | },
|
1214 | 1201 | {
|
1215 |
| - "attachments": {}, |
1216 | 1202 | "cell_type": "markdown",
|
1217 | 1203 | "metadata": {},
|
1218 | 1204 | "source": [
|
|
1272 | 1258 | ]
|
1273 | 1259 | },
|
1274 | 1260 | {
|
1275 |
| - "attachments": {}, |
1276 | 1261 | "cell_type": "markdown",
|
1277 | 1262 | "metadata": {},
|
1278 | 1263 | "source": [
|
|
1286 | 1271 | ]
|
1287 | 1272 | },
|
1288 | 1273 | {
|
1289 |
| - "attachments": {}, |
1290 | 1274 | "cell_type": "markdown",
|
1291 | 1275 | "metadata": {},
|
1292 | 1276 | "source": [
|
|
1305 | 1289 | "metadata": {
|
1306 | 1290 | "anaconda-cloud": {},
|
1307 | 1291 | "kernelspec": {
|
1308 |
| - "display_name": "Python 3.9.11 64-bit", |
| 1292 | + "display_name": "Python 3", |
1309 | 1293 | "language": "python",
|
1310 | 1294 | "name": "python3"
|
1311 | 1295 | },
|
|
1319 | 1303 | "name": "python",
|
1320 | 1304 | "nbconvert_exporter": "python",
|
1321 | 1305 | "pygments_lexer": "ipython3",
|
1322 |
| - "version": "3.9.11 [MSC v.1931 64 bit (AMD64)]" |
| 1306 | + "version": "3.9.11" |
1323 | 1307 | },
|
1324 | 1308 | "livereveal": {
|
1325 | 1309 | "scroll": true
|
|
0 commit comments