<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Pandas data frame to feature layer - empty results in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/pandas-data-frame-to-feature-layer-empty-results/m-p/848558#M3764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! That was the issue. I initially tried to add in the&amp;nbsp;location information as a parameter during the import unsuccessfully but your way of doing it worked perfectly.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Aug 2020 03:52:35 GMT</pubDate>
    <dc:creator>YvetteBevis</dc:creator>
    <dc:date>2020-08-26T03:52:35Z</dc:date>
    <item>
      <title>Pandas data frame to feature layer - empty results</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/pandas-data-frame-to-feature-layer-empty-results/m-p/848556#M3762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to scrape data from a website and publish it as a feature layer to ArcGIS Online. I have been using the sample notebook (&lt;A class="link-titled" href="https://developers.arcgis.com/python/sample-notebooks/html-table-to-pandas-data-frame-to-portal-item/" title="https://developers.arcgis.com/python/sample-notebooks/html-table-to-pandas-data-frame-to-portal-item/"&gt;HTML table to Pandas Data Frame to Portal Item | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;) as guidance for the pandas data frame to portal item bit.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my problem is that after&amp;nbsp;importing the data frame&amp;nbsp;the resulting feature collection is empty:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="/legacyfs/online/504490_tracing table error.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me understand why it's empty? Is there maybe a characteristic of the data frame that it doesn't like? Is there a small detail I've overlooked?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yvette&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2020 23:36:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/pandas-data-frame-to-feature-layer-empty-results/m-p/848556#M3762</guid>
      <dc:creator>YvetteBevis</dc:creator>
      <dc:date>2020-08-25T23:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pandas data frame to feature layer - empty results</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/pandas-data-frame-to-feature-layer-empty-results/m-p/848557#M3763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/394668" target="_blank"&gt;Yvette Bevis&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pretty sure there just isn't enough info in the table for the arcgis python API to know how to geocode the location information, and as a result it's not generating any features. Try adding state and country columns to your pandas dataframe before&amp;nbsp;the gis.content.import_data()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; GIS
gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"home"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; requests
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; urllib&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;request
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; pandas &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; pd
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; json
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; bs4 &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; BeautifulSoup

url&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"https://www.qld.gov.au/health/conditions/health-alerts/coronavirus-covid-19/current-status/contact-tracing"&lt;/SPAN&gt;
r&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;requests&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;url&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
html_content&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;text
soup&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;BeautifulSoup&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;html_content&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"html.parser"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
table&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;soup&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;find&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'table'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; id &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"table60438"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
row&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;table&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;findAll&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'tr'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
cr_df &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pd&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;read_html&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;table&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
cr_df&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Country'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Australia"&lt;/SPAN&gt;
cr_df&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'State'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"QLD"&lt;/SPAN&gt;
tracingTable&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;import_data&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;cr_df&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
tracingTable&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;query&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:25:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/pandas-data-frame-to-feature-layer-empty-results/m-p/848557#M3763</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T10:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Pandas data frame to feature layer - empty results</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/pandas-data-frame-to-feature-layer-empty-results/m-p/848558#M3764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! That was the issue. I initially tried to add in the&amp;nbsp;location information as a parameter during the import unsuccessfully but your way of doing it worked perfectly.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2020 03:52:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/pandas-data-frame-to-feature-layer-empty-results/m-p/848558#M3764</guid>
      <dc:creator>YvetteBevis</dc:creator>
      <dc:date>2020-08-26T03:52:35Z</dc:date>
    </item>
  </channel>
</rss>

