<?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 how to list the number in the attribute column in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-list-the-number-in-the-attribute-column/m-p/422075#M33174</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;HI, I wanna list number in the column of OBJECTID_1, see the picture. I wrote it like this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for row in arcpy.SearchCursor(fc):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print"%f" %row.getValue("OBJECTID_1")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what is wrong? Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]23892[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 May 2013 00:54:17 GMT</pubDate>
    <dc:creator>sxsxsxsx</dc:creator>
    <dc:date>2013-05-01T00:54:17Z</dc:date>
    <item>
      <title>how to list the number in the attribute column</title>
      <link>https://community.esri.com/t5/python-questions/how-to-list-the-number-in-the-attribute-column/m-p/422075#M33174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;HI, I wanna list number in the column of OBJECTID_1, see the picture. I wrote it like this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for row in arcpy.SearchCursor(fc):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print"%f" %row.getValue("OBJECTID_1")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what is wrong? Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]23892[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 00:54:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-list-the-number-in-the-attribute-column/m-p/422075#M33174</guid>
      <dc:creator>sxsxsxsx</dc:creator>
      <dc:date>2013-05-01T00:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to list the number in the attribute column</title>
      <link>https://community.esri.com/t5/python-questions/how-to-list-the-number-in-the-attribute-column/m-p/422076#M33175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you want to create a list containing the values of that column?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
valueList = list(i[0] for i in arcpy.da.SearchCursor(fc, ['FIELDNAME',]))
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;HI, I wanna list number in the column of OBJECTID_1, see the picture. I wrote it like this :&lt;BR /&gt;&lt;BR /&gt;for row in arcpy.SearchCursor(fc):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print"%f" %row.getValue("OBJECTID_1")&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;what is wrong? Thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[ATTACH=CONFIG]23892[/ATTACH]&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:04:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-list-the-number-in-the-attribute-column/m-p/422076#M33175</guid>
      <dc:creator>ChrisPedrezuela</dc:creator>
      <dc:date>2021-12-11T19:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to list the number in the attribute column</title>
      <link>https://community.esri.com/t5/python-questions/how-to-list-the-number-in-the-attribute-column/m-p/422077#M33176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That searchCursor is for 10.1 version by the way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you just wanted to print out the values,&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
cur = arcpy.da.SearchCursor(fc, ['FIELDNAME',])
for i in cur:
&amp;nbsp; print i[0]
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Did you want to create a list containing the values of that column?&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
valueList = list(i[0] for i in arcpy.da.SearchCursor(fc, ['FIELDNAME',]))
&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:04:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-list-the-number-in-the-attribute-column/m-p/422077#M33176</guid>
      <dc:creator>ChrisPedrezuela</dc:creator>
      <dc:date>2021-12-11T19:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to list the number in the attribute column</title>
      <link>https://community.esri.com/t5/python-questions/how-to-list-the-number-in-the-attribute-column/m-p/422078#M33177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank for thanos_cp78's help. you are very knowledgeable!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 09:05:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-list-the-number-in-the-attribute-column/m-p/422078#M33177</guid>
      <dc:creator>sxsxsxsx</dc:creator>
      <dc:date>2013-05-01T09:05:40Z</dc:date>
    </item>
  </channel>
</rss>

