<?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: DataFrame.spatial.from_featureclass column names in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/dataframe-spatial-from-featureclass-column-names/m-p/1022442#M36740</link>
    <description>&lt;P&gt;Hi Josh&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I tried the following commands:&lt;/P&gt;&lt;P&gt;&amp;nbsp;print(cat_riv_select.columns)&lt;BR /&gt;cat_riv_select.spatial.to_featureclass(location=Outputfilename_cat_riv,overwrite=True,sanitize_columns=0)&lt;BR /&gt;print(cat_ply_select.columns)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; But still get the same outputs....&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Feb 2021 03:57:55 GMT</pubDate>
    <dc:creator>MingHan</dc:creator>
    <dc:date>2021-02-02T03:57:55Z</dc:date>
    <item>
      <title>DataFrame.spatial.from_featureclass column names</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/dataframe-spatial-from-featureclass-column-names/m-p/1022438#M36737</link>
      <description>&lt;P&gt;Hi Everyone&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; For some reason, the column name of the pd.DataFrame.spatial is changed after I saved it to a file.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Here is before I save it to a file:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MingHan_2-1612236601417.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5097i2D69C2B7144A79D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MingHan_2-1612236601417.png" alt="MingHan_2-1612236601417.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Here is after I save it to a file&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MingHan_1-1612236251280.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/5096iE7ECF7EBB1C653B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MingHan_1-1612236251280.png" alt="MingHan_1-1612236251280.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the code&amp;nbsp;&lt;/P&gt;&lt;P&gt;print(cat_riv_select.columns)&lt;BR /&gt;cat_riv_select.spatial.to_featureclass(location=Outputfilename_cat_riv)&lt;BR /&gt;print(cat_ply_select.columns)&lt;/P&gt;&lt;P&gt;Is there any option I did not include?&amp;nbsp;&lt;/P&gt;&lt;P&gt;My ArcGIS pro version is 2.7.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ming&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 03:30:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/dataframe-spatial-from-featureclass-column-names/m-p/1022438#M36737</guid>
      <dc:creator>MingHan</dc:creator>
      <dc:date>2021-02-02T03:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: DataFrame.spatial.from_featureclass column names</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/dataframe-spatial-from-featureclass-column-names/m-p/1022439#M36738</link>
      <description>&lt;P&gt;In the &lt;STRONG&gt;to_featureclass&lt;/STRONG&gt; method, there is an optional Boolean parameter &lt;EM&gt;santize_columns &lt;/EM&gt;that defaults to True. Set this parameter to False to keep your column names as you have them written.&lt;/P&gt;&lt;P&gt;If you look at the docs for the &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#arcgis.features.GeoAccessor.sanitize_column_names" target="_self"&gt;&lt;STRONG&gt;sanitize_column_names&lt;/STRONG&gt;&lt;/A&gt; method itself, you can see that the default option is "snake_case".&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 03:38:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/dataframe-spatial-from-featureclass-column-names/m-p/1022439#M36738</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-02-02T03:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: DataFrame.spatial.from_featureclass column names</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/dataframe-spatial-from-featureclass-column-names/m-p/1022440#M36739</link>
      <description>&lt;P&gt;I got an error: "to_featureclass() got an unexpected keyword argument 'santize_columns'"&lt;/P&gt;&lt;P&gt;by this:&lt;/P&gt;&lt;P&gt;cat_riv_select.spatial.to_featureclass(location=Outputfilename_cat_riv,santize_columns=False)&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 03:40:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/dataframe-spatial-from-featureclass-column-names/m-p/1022440#M36739</guid>
      <dc:creator>MingHan</dc:creator>
      <dc:date>2021-02-02T03:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: DataFrame.spatial.from_featureclass column names</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/dataframe-spatial-from-featureclass-column-names/m-p/1022442#M36740</link>
      <description>&lt;P&gt;Hi Josh&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I tried the following commands:&lt;/P&gt;&lt;P&gt;&amp;nbsp;print(cat_riv_select.columns)&lt;BR /&gt;cat_riv_select.spatial.to_featureclass(location=Outputfilename_cat_riv,overwrite=True,sanitize_columns=0)&lt;BR /&gt;print(cat_ply_select.columns)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; But still get the same outputs....&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 03:57:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/dataframe-spatial-from-featureclass-column-names/m-p/1022442#M36740</guid>
      <dc:creator>MingHan</dc:creator>
      <dc:date>2021-02-02T03:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: DataFrame.spatial.from_featureclass column names</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/dataframe-spatial-from-featureclass-column-names/m-p/1022522#M36749</link>
      <description>&lt;P&gt;It seems to be working when I test it. What's the "cat_ply_select.columns" object in your code? If you're instantiating it prior to the &lt;EM&gt;to_featureclass&lt;/EM&gt; function, you'll need to re-create it from the newly-exported file.&lt;/P&gt;&lt;P&gt;Try reading the new file with &lt;STRONG&gt;pandas.DataFrame.spatial.from_featureclass()&lt;/STRONG&gt; and see if the column name persists.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 14:09:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/dataframe-spatial-from-featureclass-column-names/m-p/1022522#M36749</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-02-02T14:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: DataFrame.spatial.from_featureclass column names</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/dataframe-spatial-from-featureclass-column-names/m-p/1022537#M36754</link>
      <description>&lt;P&gt;I double test in the ArcGIS notebook, seems it is work there, I guess I got something wrong in my code. Many thanks for your help&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ming&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 14:37:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/dataframe-spatial-from-featureclass-column-names/m-p/1022537#M36754</guid>
      <dc:creator>MingHan</dc:creator>
      <dc:date>2021-02-02T14:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: DataFrame.spatial.from_featureclass column names</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/dataframe-spatial-from-featureclass-column-names/m-p/1035831#M38444</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Did this ever get resolved? I get the same error now.&lt;/P&gt;&lt;P&gt;Thanks Gert&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 06:44:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/dataframe-spatial-from-featureclass-column-names/m-p/1035831#M38444</guid>
      <dc:creator>Gertvan_Maren1</dc:creator>
      <dc:date>2021-03-12T06:44:09Z</dc:date>
    </item>
  </channel>
</rss>

