I would like to perform snapping using Arcpy for a lot of files in all the lines of the shapefiles that don't connect to the nearest other lines, so they do.
I tried to do it in geopandas using Python but I can't make it work.
Since I don't know much about ArcPy I will show you what I have done in geopandas:
import geopandas as gpd
from shapely.ops import snap
s=gpd.read_file(r'C:\Users\user\Desktop\ag_eus')
result=snap(s,s,0.5)
How this code would be converted in ArcPy?
I have done this process in regular Arcmap and worked great but how to do it in ArcPy so it can work with multiple shapefiles in a loop. If you can explain what you do too, would be great.