<?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: Full compare in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/full-compare/m-p/1396372#M70063</link>
    <description>&lt;P&gt;To get unique values in a field, I've used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy

featureClass = r"C:\Default.gdb\Export_Output_10"
fields = ['FEATUREID']

listOfValues=[]

with arcpy.da.SearchCursor(featureClass, fields) as cursor:
    for row in cursor:
        listOfValues.append(row[0])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can convert the list to a set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# set() to convert list to set
set_of_values  = set(listOfValues)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sets can be subtracted from each other to find the differences.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.geeksforgeeks.org/python-set-difference/" target="_blank"&gt;Python Set | difference() - GeeksforGeeks&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2024 00:51:00 GMT</pubDate>
    <dc:creator>Tom_Laue</dc:creator>
    <dc:date>2024-03-15T00:51:00Z</dc:date>
    <item>
      <title>Full compare</title>
      <link>https://community.esri.com/t5/python-questions/full-compare/m-p/1396368#M70061</link>
      <description>&lt;P&gt;I have 2 identical feature class with unique ID, I want to get All IDS from both classes which&amp;nbsp;&lt;BR /&gt;NEW exists in feature&amp;nbsp; Class 1 not exists in feature Class 2&lt;/P&gt;&lt;P&gt;DELETED exists in feature&amp;nbsp; Class 2 not exists in feature Class 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ready code?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 00:34:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/full-compare/m-p/1396368#M70061</guid>
      <dc:creator>Moi_Nccncc</dc:creator>
      <dc:date>2024-03-15T00:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Full compare</title>
      <link>https://community.esri.com/t5/python-questions/full-compare/m-p/1396370#M70062</link>
      <description>&lt;P&gt;Try the feature compare tool?&lt;/P&gt;&lt;P&gt;Just make sure that it doesn’t stop at the first difference and then look at the output table.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/3.1/tool-reference/data-management/feature-compare.htm" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/3.1/tool-reference/data-management/feature-compare.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Assuming that they have a common identifying field like an ID or name, you could also try joining the two tables on that field and then select by attribute or definition query to meet your criteria.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 00:42:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/full-compare/m-p/1396370#M70062</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2024-03-15T00:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Full compare</title>
      <link>https://community.esri.com/t5/python-questions/full-compare/m-p/1396372#M70063</link>
      <description>&lt;P&gt;To get unique values in a field, I've used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy

featureClass = r"C:\Default.gdb\Export_Output_10"
fields = ['FEATUREID']

listOfValues=[]

with arcpy.da.SearchCursor(featureClass, fields) as cursor:
    for row in cursor:
        listOfValues.append(row[0])&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you can convert the list to a set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# set() to convert list to set
set_of_values  = set(listOfValues)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sets can be subtracted from each other to find the differences.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.geeksforgeeks.org/python-set-difference/" target="_blank"&gt;Python Set | difference() - GeeksforGeeks&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 00:51:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/full-compare/m-p/1396372#M70063</guid>
      <dc:creator>Tom_Laue</dc:creator>
      <dc:date>2024-03-15T00:51:00Z</dc:date>
    </item>
  </channel>
</rss>

