I am able to read and write shapefiles in ArcGIS Pro using geopandas, but it would be more useful to read and write within a geodatabase. When I try to read a feature class in a file geodatabase, I get the following driver error:
DriverIOError: Attempt to create csv layer (file) against a non-directory datasource.
When I try to write a geodataframe as a feature class, I get the following error:
No such file or directory
I am wondering what I'm doing wrong... Please see my script below:
file = outGDB + '\FC_Name'
FC_gdf = gp.read_file(file, driver = 'FileGDB'))
FC_gdf = gp.to_file(file, driver = 'FileGDB')
Thanks for your help!