|
23 | 23 | "source": [ |
24 | 24 | "## HTML table to Pandas Data Frame to Portal Item\n", |
25 | 25 | "\n", |
26 | | - "Often we read informative articles that present data in a tabular form. If such data contained location information, it would be much more insightful if presented as a cartographic map. Thus this sample shows how Pandas can be used to extract data from a table within a web page (in this case, a Wikipedia article) and how it can be then brought into the GIS for further analysis and visualization.\n", |
| 26 | + "Often we read informative articles that present data in a tabular form. If such data contains location information, it would be much more insightful if presented as a cartographic map. Thus this sample shows how Pandas can be used to extract data from a table within a web page (in this case, a Wikipedia article) and how it can be then brought into the GIS for further analysis and visualization.\n", |
27 | 27 | "\n", |
28 | 28 | "**Note**: to run this sample, you need a few extra libraries in your conda environment. If you don't have the libraries, install them by running the following commands from cmd.exe or your shell\n", |
29 | 29 | "\n", |
|
581 | 581 | "metadata": {}, |
582 | 582 | "source": [ |
583 | 583 | "### Plot as a map\n", |
584 | | - "Let us connect to our GIS to geocode this data and present it as a map" |
| 584 | + "Let us connect to our GIS to geocode this data and present it as a map, either by specifying username and password, e.g. in `gis = GIS(\"https://www.arcgis.com\", \"arcgis_python\", \"P@ssword123\")` or via an existing profile:" |
585 | 585 | ] |
586 | 586 | }, |
587 | 587 | { |
|
593 | 593 | "from arcgis.gis import GIS\n", |
594 | 594 | "import json\n", |
595 | 595 | "\n", |
596 | | - "gis = GIS(\"https://www.arcgis.com\", \"arcgis_python\", \"P@ssword123\")" |
| 596 | + "gis = GIS(profile=\"your_online_profile\")" |
597 | 597 | ] |
598 | 598 | }, |
599 | 599 | { |
|
739 | 739 | "source": [ |
740 | 740 | "## PDF table to Pandas Data Frame to Portal Item\n", |
741 | 741 | "\n", |
742 | | - "Also, PDF files can contain useful information presented in a tabular form. If such data contained location information, it would be much more insightful if presented as a cartographic map. Thus this sample shows how Pandas can be used to extract data from a table within a PDF file (in this case, a PDF accessible from `California Department of Forestry & Fire Protection (CAL FIRE)` website) and how it can be then brought into the GIS for further analysis and visualization.\n", |
| 742 | + "Also, PDF files can contain useful information presented in a tabular form. If such data contains location information, it would be much more insightful if presented as a cartographic map. Thus this sample shows how Pandas can be used to extract data from a table within a PDF file (in this case, a PDF accessible from `California Department of Forestry & Fire Protection (CAL FIRE)` website) and how it can be then brought into the GIS for further analysis and visualization.\n", |
743 | 743 | "\n", |
744 | 744 | "**Note**: to run this sample, you need a few extra libraries in your conda environment. If you don't have the libraries, install them by running the following commands from cmd.exe or your shell\n", |
745 | 745 | "\n", |
|
884 | 884 | "metadata": {}, |
885 | 885 | "outputs": [], |
886 | 886 | "source": [ |
887 | | - "from tabula import wrapper\n", |
888 | 887 | "df = wrapper.read_pdf(pdf_url_list[0])" |
889 | 888 | ] |
890 | 889 | }, |
|
0 commit comments