<?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 Python API in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api/m-p/878984#M5020</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is best practice for accessing attributes from a featureclass through the python API? This is my current query:&amp;nbsp;&lt;BR /&gt;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&amp;nbsp;&lt;SPAN&gt;arcgis.features.layer.FeatureLayer as a returned type.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jan 2018 15:24:17 GMT</pubDate>
    <dc:creator>MathisGaarde_Kristensen</dc:creator>
    <dc:date>2018-01-10T15:24:17Z</dc:date>
    <item>
      <title>Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api/m-p/878984#M5020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is best practice for accessing attributes from a featureclass through the python API? This is my current query:&amp;nbsp;&lt;BR /&gt;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&amp;nbsp;&lt;SPAN&gt;arcgis.features.layer.FeatureLayer as a returned type.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 15:24:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api/m-p/878984#M5020</guid>
      <dc:creator>MathisGaarde_Kristensen</dc:creator>
      <dc:date>2018-01-10T15:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api/m-p/878985#M5021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mathis, I have move your query to &lt;A href="https://community.esri.com/groups/arcgis-python-api?sr=search&amp;amp;searchId=c466574f-198a-4810-9a7f-3a2da20220b9&amp;amp;searchIndex=0"&gt;https://community.esri.com/groups/arcgis-python-api?sr=search&amp;amp;searchId=c466574f-198a-4810-9a7f-3a2da20220b9&amp;amp;searchIndex=0&lt;/A&gt;‌ since it is more api than python&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 15:38:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api/m-p/878985#M5021</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-01-10T15:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api/m-p/878986#M5022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured out how to do it by using the Pandas Framework.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 15:43:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/python-api/m-p/878986#M5022</guid>
      <dc:creator>MathisGaarde_Kristensen</dc:creator>
      <dc:date>2018-01-10T15:43:47Z</dc:date>
    </item>
  </channel>
</rss>

