I'm struggling to build a dataframe out of a featureclass (via a layer), where I'm getting this error message:
Exception: Could not load the dataset: 'Layer' object has no attribute 'filter'
from this code:
from arcgis.features import GeoAccessor, GeoSeriesAccessor from arcgis.gis import GIS import pandas as pd import arcpy aprx = arcpy.mp.ArcGISProject('C:/....../MyProject.aprx')) project_map = aprx.listMaps("NiftyMap") lyr = project_map.listLayers("MyLayer") sdf = pd.DataFrame.spatial.from_layer(lyr) Exception: Could not load the dataset: 'Layer' object has no attribute 'filter'
I can't see what the issue is?