<?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 Re: Create table from point feature class in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/create-table-from-point-feature-class/m-p/1173790#M64548</link>
    <description>&lt;P&gt;hello, yeah i tried that! i don't want to use any existing geoprocessing tools. i was wondering to how to do in python code without it.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2022 17:05:50 GMT</pubDate>
    <dc:creator>ViennaCooper</dc:creator>
    <dc:date>2022-05-13T17:05:50Z</dc:date>
    <item>
      <title>Create table from point feature class</title>
      <link>https://community.esri.com/t5/python-questions/create-table-from-point-feature-class/m-p/1173695#M64545</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have want to create geodatabase table from geodatabase feature class. i have the following codes&amp;nbsp;&lt;/P&gt;&lt;P&gt;Occurances = []&lt;BR /&gt;with arcpy.da.SearchCursor (fc, field) as cursor:&lt;BR /&gt;for row in cursor:&lt;BR /&gt;Occurances.append (row[0])&lt;/P&gt;&lt;P&gt;for i in set(Occurances):&lt;BR /&gt;icount = Occurances.count(i)&lt;BR /&gt;print (str(i) + ":", icount)&lt;/P&gt;&lt;P&gt;but instead of printing i really want to create a table using python that shows item name and the number of times in appears in the the feature class. any help would be very much appreciated. thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 15:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-table-from-point-feature-class/m-p/1173695#M64545</guid>
      <dc:creator>ViennaCooper</dc:creator>
      <dc:date>2022-05-13T15:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create table from point feature class</title>
      <link>https://community.esri.com/t5/python-questions/create-table-from-point-feature-class/m-p/1173779#M64547</link>
      <description>&lt;P&gt;Either the Summary Statistics or Frequency tool would be easier and faster than doing this with a search cursor. Have you tried that?&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 16:29:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-table-from-point-feature-class/m-p/1173779#M64547</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2022-05-13T16:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create table from point feature class</title>
      <link>https://community.esri.com/t5/python-questions/create-table-from-point-feature-class/m-p/1173790#M64548</link>
      <description>&lt;P&gt;hello, yeah i tried that! i don't want to use any existing geoprocessing tools. i was wondering to how to do in python code without it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 17:05:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-table-from-point-feature-class/m-p/1173790#M64548</guid>
      <dc:creator>ViennaCooper</dc:creator>
      <dc:date>2022-05-13T17:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create table from point feature class</title>
      <link>https://community.esri.com/t5/python-questions/create-table-from-point-feature-class/m-p/1173799#M64549</link>
      <description>&lt;P&gt;If you want to work with table data in Python, I recommend the arcpy method to copy tables to numpy arrays and using pandas. Right&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/1066"&gt;@DanPatterson_Retired&lt;/a&gt;&amp;nbsp;?&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 17:19:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-table-from-point-feature-class/m-p/1173799#M64549</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2022-05-13T17:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Create table from point feature class</title>
      <link>https://community.esri.com/t5/python-questions/create-table-from-point-feature-class/m-p/1173939#M64550</link>
      <description>&lt;P&gt;I think something like this would create and populate the table.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;tbl = &amp;lt;path to table&amp;gt;
arcpy.management.CreateTable(os.path.dirname(tbl), os.path.basename(tbl))
arcpy.management.AddField(tbl, 'name', 'TEXT', field_length=255)
arcpy.management.AddField(tbl, 'count', 'LONG')
with arcpy.da.InsertCursor(tbl, ['name', 'count']) as cursor:
	for i in set(Occurances):
          	cursor.insertRow([str(i), Occurances.count(i)])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 21:31:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-table-from-point-feature-class/m-p/1173939#M64550</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2022-05-13T21:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create table from point feature class</title>
      <link>https://community.esri.com/t5/python-questions/create-table-from-point-feature-class/m-p/1173966#M64552</link>
      <description>&lt;P&gt;TableToNumPyArray to get the array&lt;/P&gt;&lt;P&gt;python, numpy, scipy, etc,&amp;nbsp; magic analysis here....&lt;/P&gt;&lt;P&gt;NumPyArrayToTable to get the results back into Pro&lt;/P&gt;</description>
      <pubDate>Sat, 14 May 2022 00:12:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-table-from-point-feature-class/m-p/1173966#M64552</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-05-14T00:12:00Z</dc:date>
    </item>
  </channel>
</rss>

