<?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 Using Geopandas with ArcGIS in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/using-geopandas-with-arcgis/m-p/1520732#M86925</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I've worked in Python and Pandas and Geopandas and given that I know the functions within those, I find it easier to use them. I would have to make a clone of the Arc env with Conda in order to install the geopandas package (Pandas comes in the Arc environment), which I can do (waiting for admin privileges) but I'm wondering if others have gone down this path and found it workable. It's easy enough to get a feature layer into an SEDF, but I don't think geopandas can deal with a SEDF since it recognizes coordinates as Geometry (awhile back I was using AGOL and remember that being the case). What are your thoughts on this? Do I just need to learn the functions within Arc and deal with the fact that it doesn't seem nearly as intuitive, or can what I'm suggesting be a viable alternative?&lt;/P&gt;&lt;P&gt;I am dealing with health info, so I can't upload data to the internet and need to use Pro.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;James&lt;/P&gt;</description>
    <pubDate>Tue, 13 Aug 2024 17:42:01 GMT</pubDate>
    <dc:creator>Jades1</dc:creator>
    <dc:date>2024-08-13T17:42:01Z</dc:date>
    <item>
      <title>Using Geopandas with ArcGIS</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-geopandas-with-arcgis/m-p/1520732#M86925</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I've worked in Python and Pandas and Geopandas and given that I know the functions within those, I find it easier to use them. I would have to make a clone of the Arc env with Conda in order to install the geopandas package (Pandas comes in the Arc environment), which I can do (waiting for admin privileges) but I'm wondering if others have gone down this path and found it workable. It's easy enough to get a feature layer into an SEDF, but I don't think geopandas can deal with a SEDF since it recognizes coordinates as Geometry (awhile back I was using AGOL and remember that being the case). What are your thoughts on this? Do I just need to learn the functions within Arc and deal with the fact that it doesn't seem nearly as intuitive, or can what I'm suggesting be a viable alternative?&lt;/P&gt;&lt;P&gt;I am dealing with health info, so I can't upload data to the internet and need to use Pro.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;James&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 17:42:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-geopandas-with-arcgis/m-p/1520732#M86925</guid>
      <dc:creator>Jades1</dc:creator>
      <dc:date>2024-08-13T17:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using Geopandas with ArcGIS</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/using-geopandas-with-arcgis/m-p/1520753#M86926</link>
      <description>&lt;P&gt;Hi James, I've used arcpy, arcgis API for Python, and Geopandas together and works ok once you get the hang of it. As you say, clone the arc Python environment then pip install Geopandas works fine. Here's an example of rotating something with geopandas, shapely and the API for Python.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
from arcgis.gis import GIS
import os
import pandas as pd
import geopandas as gpd
from shapely import affinity

sdf = pd.DataFrame.spatial.from_featureclass(rotate_features_sj)
gdf = gpd.GeoDataFrame(sdf, geometry='SHAPE', crs=f"EPSG:{self.epsg_code}")
for index, row in gdf.iterrows():
   rotate_pf = affinity.rotate(row['SHAPE'], row['Pivot_Rotation'], origin=(row['Pivot_Easting'], row['Pivot_Northing']))
gdf.loc[index, 'geometry'] = rotate_pf
gdf.loc[index, 'SHAPE'] = gdf.loc[index, 'geometry']
gdf = gdf.drop(columns=['geometry'])
gdf.to_file(os.path.dirname(self.final_features), layer=os.path.basename(self.final_features), driver="OpenFileGDB", crs=f"EPSG:{self.epsg_code}")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 18:17:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/using-geopandas-with-arcgis/m-p/1520753#M86926</guid>
      <dc:creator>MattHowe</dc:creator>
      <dc:date>2024-08-13T18:17:23Z</dc:date>
    </item>
  </channel>
</rss>

