<?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: Python notebook to delete features in hosted table when any set of 3 values in 3 distinct fields repeats in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-notebook-to-delete-features-in-hosted-table/m-p/1352768#M69280</link>
    <description>&lt;P&gt;Thank you, Alfred. I don't normally use the advanced runtime required for arcpy, yet it is a simple, good solution and I appreciate your time and help.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Nov 2023 20:10:52 GMT</pubDate>
    <dc:creator>DavidFrisbey</dc:creator>
    <dc:date>2023-11-22T20:10:52Z</dc:date>
    <item>
      <title>Python notebook to delete features in hosted table when any set of 3 values in 3 distinct fields repeats</title>
      <link>https://community.esri.com/t5/python-questions/python-notebook-to-delete-features-in-hosted-table/m-p/1347905#M69208</link>
      <description>&lt;P&gt;Hi super smart Esri Community,&lt;/P&gt;&lt;P&gt;I am seeking a solution to delete rows in a hosted table through python script in a notebook on AGOL. I can't use any solution that touches a local file like a csv file.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The chunk before this need is:&lt;/P&gt;&lt;P&gt;# delete features with where avg_ is less than 2&lt;BR /&gt;Carc.delete_features(where="avg_ &amp;lt; 2")&lt;/P&gt;&lt;P&gt;# where Carc =&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidFrisbey_0-1699558902706.png" style="width: 265px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/85543iFB71EDFAC579CCBE/image-dimensions/265x56?v=v2" width="265" height="56" role="button" title="DavidFrisbey_0-1699558902706.png" alt="DavidFrisbey_0-1699558902706.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The need is something that will delete all rows from this table if three distinct fields within Carc repeat.&lt;/P&gt;&lt;P&gt;For example, in the picture below, the solution would leave each row in the table with a unique set of 3 values in the fields sensor_id,&amp;nbsp; time_stamp, and avg_. So, in the picture below, the solution would leave the 2 first rows and remove 2 of 4 of the last 4 rows, because they have non-unique sets of&amp;nbsp;sensor_id,&amp;nbsp; time_stamp, and avg_.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DavidFrisbey_1-1699559275965.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/85544i313663D1A8AAE506/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DavidFrisbey_1-1699559275965.png" alt="DavidFrisbey_1-1699559275965.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Best,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eli L&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 20:00:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-notebook-to-delete-features-in-hosted-table/m-p/1347905#M69208</guid>
      <dc:creator>DavidFrisbey</dc:creator>
      <dc:date>2023-11-09T20:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: Python notebook to delete features in hosted table when any set of 3 values in 3 distinct fields repeats</title>
      <link>https://community.esri.com/t5/python-questions/python-notebook-to-delete-features-in-hosted-table/m-p/1348030#M69209</link>
      <description>&lt;P&gt;Can you use DeleteIdentical()?&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/delete-identical.htm" target="_blank"&gt;Delete Identical (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2023 22:43:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-notebook-to-delete-features-in-hosted-table/m-p/1348030#M69209</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2023-11-09T22:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Python notebook to delete features in hosted table when any set of 3 values in 3 distinct fields repeats</title>
      <link>https://community.esri.com/t5/python-questions/python-notebook-to-delete-features-in-hosted-table/m-p/1349967#M69242</link>
      <description>&lt;P&gt;I haven't tested this so you may have to mess with it a bit but I believe the logic is solid&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KellyTaylor_0-1700082459154.png" style="width: 700px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/86143iE68E2A7945A0B370/image-dimensions/700x294?v=v2" width="700" height="294" role="button" title="KellyTaylor_0-1700082459154.png" alt="KellyTaylor_0-1700082459154.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 21:10:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-notebook-to-delete-features-in-hosted-table/m-p/1349967#M69242</guid>
      <dc:creator>KellyTaylor</dc:creator>
      <dc:date>2023-11-15T21:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Python notebook to delete features in hosted table when any set of 3 values in 3 distinct fields repeats</title>
      <link>https://community.esri.com/t5/python-questions/python-notebook-to-delete-features-in-hosted-table/m-p/1352766#M69279</link>
      <description>&lt;P&gt;Thank you, Kelly. That works great!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 20:08:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-notebook-to-delete-features-in-hosted-table/m-p/1352766#M69279</guid>
      <dc:creator>DavidFrisbey</dc:creator>
      <dc:date>2023-11-22T20:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Python notebook to delete features in hosted table when any set of 3 values in 3 distinct fields repeats</title>
      <link>https://community.esri.com/t5/python-questions/python-notebook-to-delete-features-in-hosted-table/m-p/1352768#M69280</link>
      <description>&lt;P&gt;Thank you, Alfred. I don't normally use the advanced runtime required for arcpy, yet it is a simple, good solution and I appreciate your time and help.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 20:10:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-notebook-to-delete-features-in-hosted-table/m-p/1352768#M69280</guid>
      <dc:creator>DavidFrisbey</dc:creator>
      <dc:date>2023-11-22T20:10:52Z</dc:date>
    </item>
  </channel>
</rss>

