<?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 Best way to find compare attribute value changes in road centerlines in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/best-way-to-find-compare-attribute-value-changes/m-p/1019853#M43010</link>
    <description>&lt;P&gt;Hello Everyone!&lt;/P&gt;&lt;P&gt;I am tasked with updating our road centerline feature class regularly, and I am trying to find the most efficient way to detect and compare changes in attributes values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;My ideal:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;A workflow/tool that will let me detect the segments that have attribute value changes, and allow me to easily compare those changes to make sure those changes are valid.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Things to Note:&lt;/U&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I am using ArcGIS Pro 2.7.0.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;We get our updated road centerlines from the same source, with the same schema&lt;/LI&gt;&lt;LI&gt;There is a shared ID between the two datasets (roadsegID) that can be used for joins&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;U&gt;So far I have tried:&lt;/U&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Feature Compare tool&lt;UL&gt;&lt;LI&gt;Issue: I can't get it to compare the rows correctly. I put in the roadsegID as the sort field, but it does not the rows based off that field.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Detect Feature Changes&lt;UL&gt;&lt;LI&gt;Issue: It does not directly say which specific fields have value differences, making it less efficient.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Please let me know if you have good suggestions!&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jan 2021 22:14:21 GMT</pubDate>
    <dc:creator>MichaelBouvet</dc:creator>
    <dc:date>2021-01-25T22:14:21Z</dc:date>
    <item>
      <title>Best way to find compare attribute value changes in road centerlines</title>
      <link>https://community.esri.com/t5/data-management-questions/best-way-to-find-compare-attribute-value-changes/m-p/1019853#M43010</link>
      <description>&lt;P&gt;Hello Everyone!&lt;/P&gt;&lt;P&gt;I am tasked with updating our road centerline feature class regularly, and I am trying to find the most efficient way to detect and compare changes in attributes values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;My ideal:&lt;/U&gt;&lt;/P&gt;&lt;P&gt;A workflow/tool that will let me detect the segments that have attribute value changes, and allow me to easily compare those changes to make sure those changes are valid.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Things to Note:&lt;/U&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I am using ArcGIS Pro 2.7.0.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;We get our updated road centerlines from the same source, with the same schema&lt;/LI&gt;&lt;LI&gt;There is a shared ID between the two datasets (roadsegID) that can be used for joins&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;U&gt;So far I have tried:&lt;/U&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Feature Compare tool&lt;UL&gt;&lt;LI&gt;Issue: I can't get it to compare the rows correctly. I put in the roadsegID as the sort field, but it does not the rows based off that field.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Detect Feature Changes&lt;UL&gt;&lt;LI&gt;Issue: It does not directly say which specific fields have value differences, making it less efficient.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Please let me know if you have good suggestions!&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 22:14:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-way-to-find-compare-attribute-value-changes/m-p/1019853#M43010</guid>
      <dc:creator>MichaelBouvet</dc:creator>
      <dc:date>2021-01-25T22:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to find compare attribute value changes in road centerlines</title>
      <link>https://community.esri.com/t5/data-management-questions/best-way-to-find-compare-attribute-value-changes/m-p/1019859#M43011</link>
      <description>&lt;P&gt;How comfortable are you with Python? The &lt;STRONG&gt;Pandas&lt;/STRONG&gt; module has a &lt;STRONG&gt;compare()&lt;/STRONG&gt; function to compare datasets that works well for situations like this.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 23:02:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-way-to-find-compare-attribute-value-changes/m-p/1019859#M43011</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-01-25T23:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to find compare attribute value changes in road centerlines</title>
      <link>https://community.esri.com/t5/data-management-questions/best-way-to-find-compare-attribute-value-changes/m-p/1019863#M43012</link>
      <description>&lt;P&gt;I am halfway through a certificate in python, so I am willing to try it!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 23:05:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-way-to-find-compare-attribute-value-changes/m-p/1019863#M43012</guid>
      <dc:creator>MichaelBouvet</dc:creator>
      <dc:date>2021-01-25T23:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Best way to find compare attribute value changes in road centerlines</title>
      <link>https://community.esri.com/t5/data-management-questions/best-way-to-find-compare-attribute-value-changes/m-p/1019866#M43013</link>
      <description>&lt;P&gt;You could probably start testing it out in an AGOL Notebook. Check out &lt;A href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.compare.html" target="_self"&gt;the compare() docs&lt;/A&gt; for reference. The two input datasets have to have the same length in order to be compared, but that's pretty easy to do in Pandas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import pandas as pd

df1 = pd.DataFrame('old-data-source')
df2 = pd.DataFrame('new-data-source')

for df in [df1, df2]:
    df.set_index('roadsegID', inplace=True)

# Optional section in case there are different row counts between the frames
df1 = df1[df1.index.isin(df2.index.to_list())]
df2 = df2[df2.index.isin(df1.index.to_list())]

# Compare frames
comp = df1.compare(df2)

comp&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That'll spit out a dataframe of rows which have difference in some column and columns which have a difference in some row. Good luck!&lt;/P&gt;&lt;P&gt;I should say, too, that there are more elegant ways to handle that optional section, but not knowing your schema or data, I went with that. As you test things out, you'll figure out the way you like to do it.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 23:16:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/best-way-to-find-compare-attribute-value-changes/m-p/1019866#M43013</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-01-25T23:16:41Z</dc:date>
    </item>
  </channel>
</rss>

