Skip to content

Commit a24d6fd

Browse files
committed
address yongyao rev suggests
1 parent b2fd8cf commit a24d6fd

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

samples/05_content_publishers/html_table_to_pandas_data_frame_to_portal_item.ipynb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"source": [
2424
"## HTML table to Pandas Data Frame to Portal Item\n",
2525
"\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",
2727
"\n",
2828
"**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",
2929
"\n",
@@ -581,7 +581,7 @@
581581
"metadata": {},
582582
"source": [
583583
"### 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:"
585585
]
586586
},
587587
{
@@ -593,7 +593,7 @@
593593
"from arcgis.gis import GIS\n",
594594
"import json\n",
595595
"\n",
596-
"gis = GIS(\"https://www.arcgis.com\", \"arcgis_python\", \"P@ssword123\")"
596+
"gis = GIS(profile=\"your_online_profile\")"
597597
]
598598
},
599599
{
@@ -739,7 +739,7 @@
739739
"source": [
740740
"## PDF table to Pandas Data Frame to Portal Item\n",
741741
"\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",
743743
"\n",
744744
"**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",
745745
"\n",
@@ -884,7 +884,6 @@
884884
"metadata": {},
885885
"outputs": [],
886886
"source": [
887-
"from tabula import wrapper\n",
888887
"df = wrapper.read_pdf(pdf_url_list[0])"
889888
]
890889
},

0 commit comments

Comments
 (0)