<?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: Points Max and Min in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/points-max-and-min/m-p/23394#M823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try changing the key argument on lines 9 &amp;amp; 10 to:&lt;/P&gt;&lt;PRE class=""&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;CODE&gt;key&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;lambda&lt;/SPAN&gt; x&lt;SPAN class=""&gt;:&lt;/SPAN&gt; float(x&lt;SPAN class=""&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;1&lt;/SPAN&gt;&lt;SPAN class=""&gt;])&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Apr 2020 23:14:40 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2020-04-01T23:14:40Z</dc:date>
    <item>
      <title>Points Max and Min</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/points-max-and-min/m-p/23387#M816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a layer with:&lt;/P&gt;&lt;P&gt;*LINK ID&lt;/P&gt;&lt;P&gt;*Road_Point_ID&lt;/P&gt;&lt;P&gt;*House Number&lt;/P&gt;&lt;P&gt;*Lat&lt;/P&gt;&lt;P&gt;*Lon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="486026" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/486026_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to take the Max and Min House Number of each Link ID, but I could not found the correct way to do this; I tried with Summary Statitics tool, although if give me the information I require, it removes the Lon and Lat values and those values are necessary; I will try with the Select by Attributes tool, using a SQL sentence: "HOUSE_NUMBER = (SELECT MIN(HOUSE_NUMBER) FROM name_table", but this only select the max or min of the all table and not of each Link ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea to solve this question?&lt;/P&gt;&lt;P&gt;Thank you so much for your support;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2020 03:45:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/points-max-and-min/m-p/23387#M816</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-03-24T03:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Points Max and Min</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/points-max-and-min/m-p/23388#M817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not join your result table with the input table to append the info you need? Alternatively try Excel with pivot tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2020 13:42:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/points-max-and-min/m-p/23388#M817</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2020-03-24T13:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Points Max and Min</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/points-max-and-min/m-p/23389#M818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;I want to take the Max and Min House Number of each Link ID&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So after you get the Max and Min house number, what do you want to do with it or where do you want to store it?&amp;nbsp; Do you want the information in a new table, or do you want to update the existing table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2020 15:16:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/points-max-and-min/m-p/23389#M818</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-03-24T15:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: Points Max and Min</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/points-max-and-min/m-p/23390#M819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello L R,&lt;/P&gt;&lt;P&gt;I tried that but I can't figure out how to join the information correctly, what value can I use from one table and the other that matches correctly? I mean the only two values that match, are the Link_ID and House Number values, but the problem is:&lt;BR /&gt;-If I select to join based on LINK_ID the original table has several equal values of Link_ID&lt;BR /&gt;-If I select to join based on House Number, there are several numbers that are the same&lt;BR /&gt;It causes me to join Lat/Lon incorrectly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2020 23:30:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/points-max-and-min/m-p/23390#M819</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-03-26T23:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Points Max and Min</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/points-max-and-min/m-p/23391#M820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joshua,&lt;/P&gt;&lt;P&gt;I will try to generate a new layer with only the max and min values of each LINK ID, for that reason I need the Lat/Lon values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2020 23:34:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/points-max-and-min/m-p/23391#M820</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-03-26T23:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Points Max and Min</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/points-max-and-min/m-p/23392#M821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are several ways this can be addressed.&amp;nbsp; If the feature class is already loaded into a map, and thus has a corresponding layer, I think the easiest approach is to iterate over the feature class finding the OIDs that correspond to the max and min values you want, then you can select those OIDs and export the selection to a new feature class.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; collections &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; defaultdict

lyr_name &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"minmax_example"&lt;/SPAN&gt;

max_values &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; defaultdict&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;lambda&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;None&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;math&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;inf&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
min_values &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; defaultdict&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;lambda&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;None&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;math&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;inf&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;with&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr_name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"OID@"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"LINK_ID"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"HOUSE_NUMBER"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; cur&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; oid&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lid&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; hn &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; cur&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
        max_values&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;lid&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; max&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;max_values&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;lid&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;oid&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;hn&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; key&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;lambda&lt;/SPAN&gt; x&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; x&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
        min_values&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;lid&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; min&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;min_values&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;lid&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;oid&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;hn&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; key&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;lambda&lt;/SPAN&gt; x&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; x&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

max_oids &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;oid &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; oid&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;_ &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; max_values&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;values&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
min_oids &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;oid &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; oid&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;_ &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; min_values&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;values&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;

lyr &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISProject&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"CURRENT"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;activeMap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listLayers&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr_name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;setSelectionSet&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;max_oids &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; min_oids&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:57:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/points-max-and-min/m-p/23392#M821</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-10T20:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Points Max and Min</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/points-max-and-min/m-p/23393#M822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Joshua,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was awesome, it works!!!.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just one final question, the HOUSE_NUMBER field is data type "Text" and the other fields are "Numeric"; so when i run the scrip an error message appears that said "TypeError: '&amp;gt;' not supported between instances of 'str' and 'float'"; I did a research about this and I found the problem is because the fields are not equal. I said before the scrip works because I did a test with all the fields as Data Type "Numeric" and is working fine but do you know if something can do to avoid that error?;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for your support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2020 22:37:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/points-max-and-min/m-p/23393#M822</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-04-01T22:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Points Max and Min</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/points-max-and-min/m-p/23394#M823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try changing the key argument on lines 9 &amp;amp; 10 to:&lt;/P&gt;&lt;PRE class=""&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;CODE&gt;key&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;lambda&lt;/SPAN&gt; x&lt;SPAN class=""&gt;:&lt;/SPAN&gt; float(x&lt;SPAN class=""&gt;[&lt;/SPAN&gt;&lt;SPAN class=""&gt;1&lt;/SPAN&gt;&lt;SPAN class=""&gt;])&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/BLOCKQUOTE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2020 23:14:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/points-max-and-min/m-p/23394#M823</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-04-01T23:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Points Max and Min</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/points-max-and-min/m-p/23395#M824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!!! Issue was solved!!!&lt;/P&gt;&lt;P&gt;Have a great day!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2020 23:49:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/points-max-and-min/m-p/23395#M824</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-04-01T23:49:05Z</dc:date>
    </item>
  </channel>
</rss>

