<?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: Spatially Enabled Dataframe issues in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-issues/m-p/809244#M2385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error seems to be with datetime... do you have datetime field(s) in your dataset?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Dec 2018 23:06:07 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2018-12-05T23:06:07Z</dc:date>
    <item>
      <title>Spatially Enabled Dataframe issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-issues/m-p/809242#M2383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I previously used the SpatialDataFrame object to access online feature services. With the update of the API to 1.5.1, I have tried to utlise the new Spatially Enabled Dataframe object in the same way, as that appears to be preferred way going forward but I'm running into issues trying to access the same dataset I had no issues accessing with a SpatialDataFrame.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the error I receive when I use the simple code below&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Exception: Could not load the dataset: cannot perform __truediv__ with this index type: DatetimeIndex&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;item = gis.content.get("ItemID")&lt;BR /&gt;flayer = item.layers[1]&lt;BR /&gt;sdf = pd.DataFrame.spatial.from_layer(flayer)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'm using Python&amp;nbsp; 3.6.7 with the latest version of ArcGISPro&lt;/P&gt;&lt;P&gt;Has anyone had similar issues?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2018 22:42:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-issues/m-p/809242#M2383</guid>
      <dc:creator>MatthewSkewes2</dc:creator>
      <dc:date>2018-12-05T22:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Spatially Enabled Dataframe issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-issues/m-p/809243#M2384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The example code from &lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/introduction-to-the-spatial-dataframe/" title="https://developers.arcgis.com/python/guide/introduction-to-the-spatial-dataframe/" rel="nofollow noopener noreferrer" target="_blank"&gt;Introduction to the Spatial DataFrame | ArcGIS for Developers&lt;/A&gt; works for me:&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;features &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; SpatialDataFrame
&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; GIS

gis &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;url&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; username&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; password&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
item &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;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"id"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
flayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;layers&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;
sdf &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; SpatialDataFrame&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;from_layer&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;flayer&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:28:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-issues/m-p/809243#M2384</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-12T09:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Spatially Enabled Dataframe issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-issues/m-p/809244#M2385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error seems to be with datetime... do you have datetime field(s) in your dataset?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2018 23:06:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-issues/m-p/809244#M2385</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-12-05T23:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Spatially Enabled Dataframe issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-issues/m-p/809245#M2386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/139855"&gt;Matthew Skewes&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We've fixed an issue with the Spatially Enabled Dataframe `from_layer()` method that will be available in tomorrow morning's release. Can you run the code after updating the api&amp;nbsp;to 1.5.2 tomorrow and let me now if that addresses the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2018 23:14:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-issues/m-p/809245#M2386</guid>
      <dc:creator>JohnYaist1</dc:creator>
      <dc:date>2018-12-05T23:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Spatially Enabled Dataframe issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-issues/m-p/809246#M2387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/2049"&gt;John Yaist&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That sounds promising, I'll let you know how it goes after the update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2018 00:16:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-issues/m-p/809246#M2387</guid>
      <dc:creator>MatthewSkewes2</dc:creator>
      <dc:date>2018-12-06T00:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Spatially Enabled Dataframe issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-issues/m-p/809247#M2388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;A href="https://community.esri.com/migrated-users/2049"&gt;John Yaist&lt;/A&gt;&amp;nbsp;the update fixes the issue and using the new object has also has improved the time taken to run the script considerably.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2018 21:53:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-issues/m-p/809247#M2388</guid>
      <dc:creator>MatthewSkewes2</dc:creator>
      <dc:date>2018-12-06T21:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Spatially Enabled Dataframe issues</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-issues/m-p/809248#M2389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sweet! Thanks for the follow-up,&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/139855"&gt;Matthew Skewes&lt;/A&gt;. Bonus on the performance boost - we're always investigating ways to improve on that...good to hear!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2018 22:07:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatially-enabled-dataframe-issues/m-p/809248#M2389</guid>
      <dc:creator>JohnYaist1</dc:creator>
      <dc:date>2018-12-06T22:07:14Z</dc:date>
    </item>
  </channel>
</rss>

