<?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: Converting Pandas Dataframe (with polygon geometry) to Spatially Enabled Dataframe in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-pandas-dataframe-with-polygon-geometry/m-p/1626944#M11476</link>
    <description>&lt;P&gt;Glen,&lt;/P&gt;&lt;P&gt;This got me exactly what I wanted! Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jun 2025 21:58:57 GMT</pubDate>
    <dc:creator>KevinBoes1</dc:creator>
    <dc:date>2025-06-25T21:58:57Z</dc:date>
    <item>
      <title>Converting Pandas Dataframe (with polygon geometry) to Spatially Enabled Dataframe</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-pandas-dataframe-with-polygon-geometry/m-p/1626308#M11466</link>
      <description>&lt;P&gt;I have recently run the Time Series Cross Correlation geoprocessing tool to get outputs including a polygon feature class and a correlation table listing correlation coefficients for each polygon for each lag value defined by the correlation analysis. I am hoping to take this correlation table and convert it to a polygon feature class so that I can range-enable it and create an animation showing how each polygon's correlation coefficient changes over the lag value range.&lt;/P&gt;&lt;P&gt;In past projects, I converted tabular data to a point feature class by reading the tabular data into a pandas dataframe, converting that dataframe to a spatially enabled dataframe using the ArcGIS API for Python geoaccessor, and converting the spatially enabled dataframe to a point feature class. In this case, though, I want to convert my tabular data into a feature class with polygon geometry. I tried adding a column to my pandas dataframe with the polygon geometry obtained from the shape@ token using arcpy.da.SearchCursor() and using Geoaccessor.from_df() to specify this column as the dataframe's geometry information, but the function appears to have timed out without completing.&lt;/P&gt;&lt;P&gt;Is there a different function in the Geoaccessor module that I should be using instead, or is there perhaps a different workflow for applying polygon geometry to tabular data that would be better for me to use?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2025 18:24:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-pandas-dataframe-with-polygon-geometry/m-p/1626308#M11466</guid>
      <dc:creator>KevinBoes1</dc:creator>
      <dc:date>2025-06-24T18:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Pandas Dataframe (with polygon geometry) to Spatially Enabled Dataframe</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-pandas-dataframe-with-polygon-geometry/m-p/1626590#M11472</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/845356"&gt;@KevinBoes1&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If your goal here is to create a Polygon Feature Class you can do that with ArcPy (&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/create-feature-class.htm" target="_blank" rel="noopener"&gt;Create Feature Class&lt;/A&gt;) using your Correlation Table as a Template. &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/append.htm" target="_blank" rel="noopener"&gt;Append&lt;/A&gt; in the Correlation table data, this will leave you without geometry which you can then grab from the original polygons. If you have a matching ID from the table back to the Polygon datasets you can iterate over the Polygon dataset with a SearchCursor and use an UpdateCursor to update the Polygon geometry.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create Templated Polygon Feature Class (you could do this in memory and only save out at the end with ExportFeatures)&lt;/LI&gt;&lt;LI&gt;Append in tabular data&lt;/LI&gt;&lt;LI&gt;Iterate over the Polygon dataset with a SearchCursor, update the geom using an UpdateCursor where the unique id matches.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 10:56:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-pandas-dataframe-with-polygon-geometry/m-p/1626590#M11472</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2025-06-25T10:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Pandas Dataframe (with polygon geometry) to Spatially Enabled Dataframe</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-pandas-dataframe-with-polygon-geometry/m-p/1626944#M11476</link>
      <description>&lt;P&gt;Glen,&lt;/P&gt;&lt;P&gt;This got me exactly what I wanted! Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jun 2025 21:58:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/converting-pandas-dataframe-with-polygon-geometry/m-p/1626944#M11476</guid>
      <dc:creator>KevinBoes1</dc:creator>
      <dc:date>2025-06-25T21:58:57Z</dc:date>
    </item>
  </channel>
</rss>

