<?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: SpatialDataFrame - unable to save using to_featureclass in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-unable-to-save-using-to/m-p/880467#M5096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe I figured it out.&amp;nbsp; In my code, the line:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="border: 0px;"&gt;dfAOI.columns = [x.lower() for x in dfAOI.columns]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;changes all fields names to lower case.&amp;nbsp; When a feature class is read into a&amp;nbsp;Spatially Enabled DataFrame (SeDF), a 'shape' field is added/included and is set to all caps (SHAPE) by default. So, when the above snippet is ran and stored into a SeDF, SHAPE becomes 'shape'. Then, when 'dfAOI.spatial.to_featureclass(AOInew)'&amp;nbsp;is ran, the interpreter looks for the case-sensitive field SHAPE and does not find it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should not have used&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;dfAOI.columns = [x.lower() for x in dfAOI.columns]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;as a means to test editing data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jun 2020 11:59:32 GMT</pubDate>
    <dc:creator>RobW</dc:creator>
    <dc:date>2020-06-02T11:59:32Z</dc:date>
    <item>
      <title>SpatialDataFrame - unable to save using to_featureclass</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-unable-to-save-using-to/m-p/880462#M5091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I am testing out&amp;nbsp;SpatialDataFrame and I am trying to do a simple read-write.&amp;nbsp; I am unable to find a past post to help with my issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code (I am using ArcGIS Pro 2.5.1) is:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;import pandas as pd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;from arcgis.features import SpatialDataFrame&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;#setup to read input feature class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;AOI = r'G:\Work\pandasTest.gdb\fc_10K'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;AOIname = 'fc_10K'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;dfAOI = pd.DataFrame.spatial.from_featureclass(AOI)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;print(type(dfAOI))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;#carry out a test operation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;dfAOI.columns = [x.lower() for x in dfAOI.columns]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;print ("Number of original records or observations: ", len(dfAOI))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;#output to a new feature class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;#syntax from documentation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;# to_featureclass(out_location, out_name, overwrite=True, skip_invalid=True)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;dfAOI.spatial.to_featureclass(r'G:\Work\pandasTest.gdb', AOIname + "_new")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;print ('done')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The output error for the above code is:&amp;nbsp;&lt;/P&gt;&lt;P&gt;ValueError: 'SHAPE' is not in list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any insight as to what is going on?&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2020 12:33:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-unable-to-save-using-to/m-p/880462#M5091</guid>
      <dc:creator>RobW</dc:creator>
      <dc:date>2020-06-01T12:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: SpatialDataFrame - unable to save using to_featureclass</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-unable-to-save-using-to/m-p/880463#M5092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The SpatialDataFrame has been deprecated since August, 2018 when version 1.5 was released:&amp;nbsp; &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/"&gt;Introduction to the Spatial DataFrame | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;BLOCKQUOTE style="margin: 1.5rem 0px; font-weight: 400; font-style: normal; color: #6e6e6e; border-left: 3px solid #cccccc; font-size: 1.2019rem; line-height: 1.5; padding-left: 1rem; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;The SpatialDataFrame is deprecated as of version 1.5: Please use the Spatially Enabled DataFrame instead. See&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/python/guide/introduction-to-the-spatially-enabled-dataframe/" style="color: #0079c1; text-decoration: none;"&gt;this guide&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for more information.&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the &lt;A href="https://developers.arcgis.com/python/guide/introduction-to-the-spatially-enabled-dataframe/#Accessing-local-GIS-data"&gt;Accessing local GIS data&lt;/A&gt; section of &lt;A class="link-titled" href="https://developers.arcgis.com/python/guide/introduction-to-the-spatially-enabled-dataframe/" title="https://developers.arcgis.com/python/guide/introduction-to-the-spatially-enabled-dataframe/"&gt;Introduction to the Spatially Enabled DataFrame | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2020 16:29:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-unable-to-save-using-to/m-p/880463#M5092</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-06-01T16:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: SpatialDataFrame - unable to save using to_featureclass</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-unable-to-save-using-to/m-p/880464#M5093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response. The deprecated version threw me off a bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read through some documentation (API 1.8, the intro to spatially enabled dataframe as you pointed out, and Apr&amp;nbsp; 2020 ArcGIS for Python (&lt;A class="link-titled" href="https://www.youtube.com/watch?v=h1Lnz-rfWQo" title="https://www.youtube.com/watch?v=h1Lnz-rfWQo"&gt;YouTube&lt;/A&gt;) video&amp;nbsp; - 32:30 mentions SeDF).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified my code as below, but still the&amp;nbsp; 'ValueError: 'SHAPE' is not in list' persists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is as if&amp;nbsp;the&amp;nbsp;pd.DataFrame.spatial.from_featureclass(AOI) does not return a geo-enabled dataframe/sp&lt;SPAN&gt;atially enabled dataframe (assuming they both mean the same).&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any chance you can run a local test to give me an indication&amp;nbsp;if it is isolated&amp;nbsp;to my workstation?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import pandas as pd&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#setup to read input feature class&lt;/P&gt;&lt;P&gt;AOI = r'G:\Work\pandasTest.gdb\fc_10K'&lt;/P&gt;&lt;P&gt;AOInew = AOI + '_new'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Should return a Spatially enabled pandas.DataFrame from a feature class.&lt;/P&gt;&lt;P&gt;dfAOI = pd.DataFrame.spatial.from_featureclass(AOI)&lt;/P&gt;&lt;P&gt;print(type(dfAOI))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#carry out a test operation&lt;/P&gt;&lt;P&gt;dfAOI.columns = [x.lower() for x in dfAOI.columns]&lt;/P&gt;&lt;P&gt;print ("Number of original records or observations: ", len(dfAOI))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#output to a new feature class&lt;/P&gt;&lt;P&gt;#syntax from API v. 1.8 documentation:&lt;/P&gt;&lt;P&gt;# to_featureclass(location, overwrite=True)&lt;/P&gt;&lt;P&gt;# exports a geo enabled dataframe to a feature class.&lt;/P&gt;&lt;P&gt;dfAOI.spatial.to_featureclass(AOInew)&lt;/P&gt;&lt;P&gt;print ('done')&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DL class="" style="margin: 0px 0px 24px;"&gt;&lt;DD class="" style="margin: 0px 0px 12px 24px;"&gt;&lt;/DD&gt;&lt;/DL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2020 18:07:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-unable-to-save-using-to/m-p/880464#M5093</guid>
      <dc:creator>RobW</dc:creator>
      <dc:date>2020-06-01T18:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: SpatialDataFrame - unable to save using to_featureclass</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-unable-to-save-using-to/m-p/880465#M5094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You haven't loaded the spatial libraries, see the top part of the online introduction:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN class="" style="color: #008000; font-weight: bold; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, monospace; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; text-decoration-style: initial; text-decoration-color: initial;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, monospace; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #0000ff; font-weight: bold; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, monospace; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; text-decoration-style: initial; text-decoration-color: initial;"&gt;pandas&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, monospace; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #008000; font-weight: bold; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, monospace; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; text-decoration-style: initial; text-decoration-color: initial;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, monospace; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #0000ff; font-weight: bold; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, monospace; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; text-decoration-style: initial; text-decoration-color: initial;"&gt;pd&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" style="color: #008000; font-weight: bold; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, monospace; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; text-decoration-style: initial; text-decoration-color: initial;"&gt;from&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, monospace; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #0000ff; font-weight: bold; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, monospace; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; text-decoration-style: initial; text-decoration-color: initial;"&gt;arcgis.features&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, monospace; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #008000; font-weight: bold; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, monospace; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; text-decoration-style: initial; text-decoration-color: initial;"&gt;import&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, monospace; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #4c4c4c; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, monospace; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; text-decoration-style: initial; text-decoration-color: initial;"&gt;GeoAccessor&lt;/SPAN&gt;&lt;SPAN class="" style="color: #4c4c4c; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, monospace; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; text-decoration-style: initial; text-decoration-color: initial;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #4c4c4c; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, monospace; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt; &lt;/SPAN&gt;&lt;SPAN class="" style="color: #4c4c4c; font-family: Consolas, 'Andale Mono', 'Lucida Console', Monaco, monospace; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f7f7f7; text-decoration-style: initial; text-decoration-color: initial;"&gt;GeoSeriesAccessor&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2020 20:31:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-unable-to-save-using-to/m-p/880465#M5094</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-06-01T20:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: SpatialDataFrame - unable to save using to_featureclass</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-unable-to-save-using-to/m-p/880466#M5095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again. Actually, I tried that with the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been running the code within a cloned workspace.&amp;nbsp;In case it was isolated to my cloned workspace, I decided to try running the code within the default workspace; however I still end up with same error.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt; File "&amp;lt;string&amp;gt;", line 22, in &amp;lt;module&amp;gt;&lt;BR /&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\geo\_accessor.py", line 1925, in to_featureclass&lt;BR /&gt; overwrite=overwrite)&lt;BR /&gt; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\features\geo\_io\fileops.py", line 555, in to_featureclass&lt;BR /&gt; columns.pop(columns.index(df.spatial.name))&lt;BR /&gt;ValueError: 'SHAPE' is not in list&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interestingly, the former SpatialDataFrame is stated to be not deprecated, so I am a little surprised why my original code did not run.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #6e6e6e; background-color: #ffffff;"&gt;New at version 1.5, the Spatially Enabled DataFrame is an evolution of the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="color: #595959; background-color: #f8f8f8; border: 1px solid #efefef; font-size: 0.875em;"&gt;SpatialDataFrame&lt;/CODE&gt;&lt;SPAN style="color: #6e6e6e; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;object that you may be familiar with. While the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;CODE style="color: #595959; background-color: #f8f8f8; border: 1px solid #efefef; font-size: 0.875em;"&gt;SDF&lt;/CODE&gt;&lt;SPAN style="color: #6e6e6e; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;object is still avialable for use, the team has stopped active development of it and is promoting the use of this new Spatially Enabled DataFrame pattern. The SEDF provides you better memory management, ability to handle larger datasets and is the pattern that Pandas advocates as the path forward.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2020 11:04:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-unable-to-save-using-to/m-p/880466#M5095</guid>
      <dc:creator>RobW</dc:creator>
      <dc:date>2020-06-02T11:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: SpatialDataFrame - unable to save using to_featureclass</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-unable-to-save-using-to/m-p/880467#M5096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe I figured it out.&amp;nbsp; In my code, the line:&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="border: 0px;"&gt;dfAOI.columns = [x.lower() for x in dfAOI.columns]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;changes all fields names to lower case.&amp;nbsp; When a feature class is read into a&amp;nbsp;Spatially Enabled DataFrame (SeDF), a 'shape' field is added/included and is set to all caps (SHAPE) by default. So, when the above snippet is ran and stored into a SeDF, SHAPE becomes 'shape'. Then, when 'dfAOI.spatial.to_featureclass(AOInew)'&amp;nbsp;is ran, the interpreter looks for the case-sensitive field SHAPE and does not find it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should not have used&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;dfAOI.columns = [x.lower() for x in dfAOI.columns]&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;as a means to test editing data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2020 11:59:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/spatialdataframe-unable-to-save-using-to/m-p/880467#M5096</guid>
      <dc:creator>RobW</dc:creator>
      <dc:date>2020-06-02T11:59:32Z</dc:date>
    </item>
  </channel>
</rss>

