Im using the Python API to access a feature layer on a portal. I want to pull out the X Y coordinates of the point feature. The problem I'm encountering is that I get different types back when I query from different servers (arcgis.features.layer.FeatureLayer and list)
What is best practice for accessing attributes from a featureclass through the python API? This is my current query:
coor = layer.query(return_all_records=True) - I can then loop through the results if it's a list. The problem is that I sometimes get arcgis.features.layer.FeatureLayer as a returned type.
Mathis, I have move your query to https://community.esri.com/groups/arcgis-python-api?sr=search&searchId=c466574f-198a-4810-9a7f-3a2da... since it is more api than python
I figured out how to do it by using the Pandas Framework.