<?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: Calculating median in grouped data using ArcMap in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225766#M17448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice,&lt;/P&gt;&lt;P&gt;Paste it into a new .py file in IDLE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jan 2020 22:31:10 GMT</pubDate>
    <dc:creator>DavidPike</dc:creator>
    <dc:date>2020-01-31T22:31:10Z</dc:date>
    <item>
      <title>Calculating median in grouped data using ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225759#M17441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got stuck when calculating the median age in grouped data (age ranges) for each feature (each feature is a single administrative unit). I have about 18,000 features.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/480013_median2.png" /&gt;&lt;/P&gt;&lt;P&gt;Field names indicate age ranges: 0-14, 15-64, 65-100. In the "median" field I would like to calculate the median age for each feature. I found a website https://atozmath.com/StatsG.aspx?q=1 where you can calculate such a median for a single feature, for example the first feature from the attribute table above.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/480065_tab.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-3 j-img-original" src="https://community.esri.com/legacyfs/online/480066_med.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-4 j-img-original" src="https://community.esri.com/legacyfs/online/480067_fnd.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-5 j-img-original" src="https://community.esri.com/legacyfs/online/480068_wynik.PNG" /&gt;&lt;/P&gt;&lt;P&gt;The page easily calculated the median for the first feature in the image, and the page also wrote how it calculated it, but I don't know how to write a universal script for a "median" field to calculate the median for each feature.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 18:46:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225759#M17441</guid>
      <dc:creator>RafaelMichael</dc:creator>
      <dc:date>2020-01-31T18:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median in grouped data using ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225760#M17442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not actually too hard. N/2 will be the cumulative frequency you're looking for, so a search cursor and a few conditional statements should find your median group. Then just plug that group's range and upper and lower bands into the grouped median formula. I can write it out if you like.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 19:19:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225760#M17442</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-01-31T19:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median in grouped data using ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225761#M17443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you could write it, thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 19:23:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225761#M17443</guid>
      <dc:creator>RafaelMichael</dc:creator>
      <dc:date>2020-01-31T19:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median in grouped data using ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225762#M17444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy

input_table &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'put the path to your table here'&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#lcb is the lower class boundary&lt;/SPAN&gt;
width_age_range_1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;14.5&lt;/SPAN&gt;
lcb_age_range_1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0.0&lt;/SPAN&gt;

width_age_range_2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;50.0&lt;/SPAN&gt;
lcb_age_range_2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;14.5&lt;/SPAN&gt;

width_age_range_3 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;35.5&lt;/SPAN&gt;
lcb_age_range_3 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;64.5&lt;/SPAN&gt;

median_list &lt;SPAN class="operator token"&gt;=&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;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;input_table&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"TOT"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"TOT_0_14"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;  &lt;SPAN class="string token"&gt;"TOT_15_64"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"TOT_65"&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; cursor &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;


    
    &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; row &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; cursor &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;

        &lt;SPAN class="comment token"&gt;#if all numeric fields hopefully&lt;/SPAN&gt;
        n_over2 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;row&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;&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2.0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
         

        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; row&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="operator token"&gt;&amp;gt;=&lt;/SPAN&gt; n_over2 &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            &lt;SPAN class="comment token"&gt;#cumulative freq of groups before median group&lt;/SPAN&gt;
            cumu_freq &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0.0&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; row&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="operator token"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0.0&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                median &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; lcb_age_range_1 &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &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;n_over2 &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; cumu_freq&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;row&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; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; width_age_range_1&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                median_list&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;append&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;median&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                &lt;SPAN class="keyword token"&gt;continue&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;continue&lt;/SPAN&gt;
        
        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;row&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="operator token"&gt;+&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;=&lt;/SPAN&gt; n_over2 &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            &lt;SPAN class="comment token"&gt;#cumulative freq of groups before median group&lt;/SPAN&gt;
            cumu_freq &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; row&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="keyword token"&gt;if&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0.0&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                median &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; lcb_age_range_2 &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &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;n_over2 &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; cumu_freq&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; width_age_range_2&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                median_list&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;append&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;median&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                &lt;SPAN class="keyword token"&gt;continue&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;continue&lt;/SPAN&gt;

        &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;row&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="operator token"&gt;+&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;=&lt;/SPAN&gt; n_over2 &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            &lt;SPAN class="comment token"&gt;#cumulative freq of groups before median group&lt;/SPAN&gt;
            cumu_freq &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; row&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="operator token"&gt;+&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;!=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0.0&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                median &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; lcb_age_range_3 &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &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;n_over2 &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; cumu_freq&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;*&lt;/SPAN&gt; width_age_range_3&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                median_list&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;append&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;median&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
                &lt;SPAN class="keyword token"&gt;continue&lt;/SPAN&gt;
            &lt;SPAN class="keyword token"&gt;continue&lt;/SPAN&gt;

        &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
            median_list&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;append&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"error"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; median &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; median_list &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;median&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#obviously can add a field and append these values in rather than printing them. look at arcpy.da.UpdateCursors&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;/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;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;/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>Sat, 11 Dec 2021 10:59:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225762#M17444</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-12-11T10:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median in grouped data using ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225763#M17445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Would you create one&amp;nbsp;feature and check if it works for you? Please tell me what to do with this code, what window to open and where to paste. Forgive me, but I don't know coding and I really want to calculate these medians.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 22:10:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225763#M17445</guid>
      <dc:creator>RafaelMichael</dc:creator>
      <dc:date>2020-01-31T22:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median in grouped data using ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225764#M17446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rafael,&lt;/P&gt;&lt;P&gt;Unfortunately I dont have a home license for arcmap to test this. Do you have an IDE? If not I cant talk you through making it as a tool&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 22:13:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225764#M17446</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-01-31T22:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median in grouped data using ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225765#M17447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/480073_ide.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 22:19:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225765#M17447</guid>
      <dc:creator>RafaelMichael</dc:creator>
      <dc:date>2020-01-31T22:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median in grouped data using ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225766#M17448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice,&lt;/P&gt;&lt;P&gt;Paste it into a new .py file in IDLE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 22:31:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225766#M17448</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-01-31T22:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median in grouped data using ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225767#M17449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Run Module and this popped up&lt;BR /&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/480086_Przechwytywanie2.PNG" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 22:35:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225767#M17449</guid>
      <dc:creator>RafaelMichael</dc:creator>
      <dc:date>2020-01-31T22:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median in grouped data using ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225768#M17450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry change all those double equal signs to one equals sign up to and including line13&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 22:39:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225768#M17450</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-01-31T22:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median in grouped data using ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225769#M17451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;now there is an error with this file path&lt;BR /&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/480087_Przechwytywanie3.PNG" /&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/480088_Przechwytywanie5.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 22:59:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225769#M17451</guid>
      <dc:creator>RafaelMichael</dc:creator>
      <dc:date>2020-01-31T22:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median in grouped data using ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225770#M17452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to write it so that was good?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 23:00:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225770#M17452</guid>
      <dc:creator>RafaelMichael</dc:creator>
      <dc:date>2020-01-31T23:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median in grouped data using ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225771#M17453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've edited the original code to account for my stupidity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you need to specify you path with 'r' then in quotes as per the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;r'c:/users/david/project.gdb'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 23:04:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225771#M17453</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-01-31T23:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median in grouped data using ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225772#M17454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/480096_Przechwytywanie10.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 23:19:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225772#M17454</guid>
      <dc:creator>RafaelMichael</dc:creator>
      <dc:date>2020-01-31T23:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median in grouped data using ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225773#M17455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you done as I said mate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 23:21:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225773#M17455</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-01-31T23:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median in grouped data using ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225774#M17456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/480097_Przechwytywanie20.PNG" /&gt;&lt;BR /&gt;my path looks like this and still error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 23:30:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225774#M17456</guid>
      <dc:creator>RafaelMichael</dc:creator>
      <dc:date>2020-01-31T23:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median in grouped data using ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225775#M17457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you export your shapefile to a feature class? Not sure what's wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 23:34:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225775#M17457</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-01-31T23:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median in grouped data using ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225776#M17458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji jive-image image-2 j-img-original" src="https://community.esri.com/legacyfs/online/480102_Przechwytywanie23.PNG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/480101_Przechwytywanie21.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 23:44:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225776#M17458</guid>
      <dc:creator>RafaelMichael</dc:creator>
      <dc:date>2020-01-31T23:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median in grouped data using ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225777#M17459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Haha, I've edited the original to count it as a list rather than new parameters. My bad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2020 23:56:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225777#M17459</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2020-01-31T23:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating median in grouped data using ArcMap</title>
      <link>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225778#M17460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/480103_Przechwytywanie24.PNG" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2020 00:01:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/calculating-median-in-grouped-data-using-arcmap/m-p/225778#M17460</guid>
      <dc:creator>RafaelMichael</dc:creator>
      <dc:date>2020-02-01T00:01:30Z</dc:date>
    </item>
  </channel>
</rss>

