<?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: Data Access Module vs NumPy: Summarise Table in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/data-access-module-vs-numpy-summarise-table/m-p/629676#M48994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;go with the arrays, you data are already in a form for summarization,&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;so tabletonumpyarray it&lt;/LI&gt;&lt;LI&gt;obtain the unique classes for the key columns&lt;/LI&gt;&lt;LI&gt;produce your summarizes for your time periods (ie time15-30 etc) and the total, that will collapse some rows perhaps&lt;/LI&gt;&lt;LI&gt;convert to percentage&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;refer to docs in numpy repository, I can provide a sample when on a better machine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q's&lt;/P&gt;&lt;P&gt;how many records do you have? 100?, 1000? 10,000? &lt;/P&gt;&lt;P&gt;do you need to graph any of this?&lt;/P&gt;&lt;P&gt;any stats summaries other than indicated?&lt;/P&gt;&lt;P&gt;outputs to other formats?&lt;/P&gt;&lt;P&gt;anything else, besides mapping and the above?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 May 2016 18:37:07 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2016-05-17T18:37:07Z</dc:date>
    <item>
      <title>Data Access Module vs NumPy: Summarise Table</title>
      <link>https://community.esri.com/t5/python-questions/data-access-module-vs-numpy-summarise-table/m-p/629674#M48992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd like to find out what approaches the community have used to achieve similar results using either:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Data Access Module or;&lt;/LI&gt;&lt;LI&gt;NumPy&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following table (&lt;STRONG&gt;stats_table1&lt;/STRONG&gt;) is my starting point:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="201139" alt="Pivot_Table_Results.png" class="image-3 jive-image" height="53" src="https://community.esri.com/legacyfs/online/201139_Pivot_Table_Results.png" style="height: 88px; width: 1268.84px;" width="758" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to populate a new table (&lt;STRONG&gt;stats_table2)&lt;/STRONG&gt; based on the following structure:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="201137" alt="Stats_Summary_Table.png" class="image-2 jive-image" height="53" src="https://community.esri.com/legacyfs/online/201137_Stats_Summary_Table.png" style="width: 796px; height: 56.4903px;" width="758" /&gt;&lt;/P&gt;&lt;P&gt;for &lt;STRONG&gt;each row&lt;/STRONG&gt; in the first table:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;stats_table2&lt;/STRONG&gt; [SETTLEMENTNAME] = &lt;STRONG&gt;stats_table1&lt;/STRONG&gt; [SETTLEMENTNAME]&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;stats_table2&lt;/STRONG&gt; [SOCIAL_FACILITY] =&lt;STRONG&gt; stats_table1&lt;/STRONG&gt; [NAME]&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;stats_table2&lt;/STRONG&gt; [TIME0_15MIN] = &lt;STRONG&gt;stats_table1&lt;/STRONG&gt; (((TIME5 + TIME10 + TIME15)) / TOTALBUILD)*100)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;stats_table2&lt;/STRONG&gt; [TIME15 _30MIN] = &lt;STRONG&gt;stats_table1&lt;/STRONG&gt; (((TIME20 + TIME25 + TIME30)) / TOTALBUILD)*100)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;stats_table2&lt;/STRONG&gt; [TIME30 _60MIN] =&lt;STRONG&gt; stats_table1&lt;/STRONG&gt; ((TIME60 / TOTALBUILD)*100)&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;stats_table2&lt;/STRONG&gt; [TIME60_PLUS] = &lt;STRONG&gt;stats_table1&lt;/STRONG&gt; ((TIME60P / TOTALBUILD)*100)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final Results:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="201149" alt="Stats_Summary_Table2.png" class="image-4 jive-image" height="61" src="https://community.esri.com/legacyfs/online/201149_Stats_Summary_Table2.png" style="height: 96px; width: 1190.4px;" width="758" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;Data Access Module:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Would you use a Search Cursor to loop through &lt;STRONG&gt;stats_table1,&lt;/STRONG&gt; perform the following calculations and write the results to a python dictionary, then use a Update Cursor to populate &lt;STRONG&gt;stats_table2&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;NumPy:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Would you convert the &lt;STRONG&gt;stats_table1&lt;/STRONG&gt; to a NumPy array, perform the following calculations and write the results into a temporary array and and back to a table to be appended to &lt;STRONG&gt;stats_table2&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any sample code or references will be appreciated as I originally was looking at nesting a Search Cursor with a Update Cursor, then realised it was a bad idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 14:16:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/data-access-module-vs-numpy-summarise-table/m-p/629674#M48992</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2016-05-17T14:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Data Access Module vs NumPy: Summarise Table</title>
      <link>https://community.esri.com/t5/python-questions/data-access-module-vs-numpy-summarise-table/m-p/629675#M48993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/4811"&gt;Richard Fairhurst&lt;/A&gt; has a nice blog post titled &lt;A href="https://community.esri.com/migration-blogpost/1885"&gt;Turbo Charging Data Manipulation with Python Cursors and Dictionaries&lt;/A&gt;​ that might help with the cursor side of your question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 16:18:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/data-access-module-vs-numpy-summarise-table/m-p/629675#M48993</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2016-05-17T16:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Data Access Module vs NumPy: Summarise Table</title>
      <link>https://community.esri.com/t5/python-questions/data-access-module-vs-numpy-summarise-table/m-p/629676#M48994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;go with the arrays, you data are already in a form for summarization,&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;so tabletonumpyarray it&lt;/LI&gt;&lt;LI&gt;obtain the unique classes for the key columns&lt;/LI&gt;&lt;LI&gt;produce your summarizes for your time periods (ie time15-30 etc) and the total, that will collapse some rows perhaps&lt;/LI&gt;&lt;LI&gt;convert to percentage&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;refer to docs in numpy repository, I can provide a sample when on a better machine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Q's&lt;/P&gt;&lt;P&gt;how many records do you have? 100?, 1000? 10,000? &lt;/P&gt;&lt;P&gt;do you need to graph any of this?&lt;/P&gt;&lt;P&gt;any stats summaries other than indicated?&lt;/P&gt;&lt;P&gt;outputs to other formats?&lt;/P&gt;&lt;P&gt;anything else, besides mapping and the above?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 18:37:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/data-access-module-vs-numpy-summarise-table/m-p/629676#M48994</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-05-17T18:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Data Access Module vs NumPy: Summarise Table</title>
      <link>https://community.esri.com/t5/python-questions/data-access-module-vs-numpy-summarise-table/m-p/629677#M48995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter, Observation and Summary... attached,&amp;nbsp; You can emulate the 2nd example data structure, which I think asssumes consolidating what you have, then summarizing the time periods.&amp;nbsp; Have a look if that clarifies things.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 18:48:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/data-access-module-vs-numpy-summarise-table/m-p/629677#M48995</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-05-17T18:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data Access Module vs NumPy: Summarise Table</title>
      <link>https://community.esri.com/t5/python-questions/data-access-module-vs-numpy-summarise-table/m-p/629678#M48996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. In this case each record is unique. The original table is a summary of the number of buildings that was found within each service area interval (i.e. TIME5 = 0 - 5min, TIME10 = 5 - 10min etc.) This time around I'm sumarising the percentage of total buildings found within each new time interval (i.e. TIME0_15min = 0 - 15min etc.). For the unique columns could I use the OBJECTID? How do I go about collapsing the columns to generate the new time intervals based on the following?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards to the Q's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The number of records are reasonably small, but I'll be running the following regularly for different study areas.&lt;/LI&gt;&lt;LI&gt;Yes, I'd like to generate graphs but would like them displayed in ArcMap as part of my Data Driven Pages at a later stage.&lt;/LI&gt;&lt;LI&gt;Not at this stage&lt;/LI&gt;&lt;LI&gt;I'm looking at using OpenPyXL to write the final table out to Excel based on a predifined template for various social facility types (i.e. Schools, Health Facilities, Community Services, Recreation Facilities etc.)&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 19:19:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/data-access-module-vs-numpy-summarise-table/m-p/629678#M48996</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2016-05-17T19:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Data Access Module vs NumPy: Summarise Table</title>
      <link>https://community.esri.com/t5/python-questions/data-access-module-vs-numpy-summarise-table/m-p/629679#M48997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Blake&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the following, looks great. I'll post my final code using Data Access Module and NumPy for comparison.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 19:26:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/data-access-module-vs-numpy-summarise-table/m-p/629679#M48997</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2016-05-17T19:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Data Access Module vs NumPy: Summarise Table</title>
      <link>https://community.esri.com/t5/python-questions/data-access-module-vs-numpy-summarise-table/m-p/629680#M48998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll go through the following and post my code. Will most like come back to you with some questions regarding summarizing the new classes based on above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 19:29:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/data-access-module-vs-numpy-summarise-table/m-p/629680#M48998</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2016-05-17T19:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Data Access Module vs NumPy: Summarise Table</title>
      <link>https://community.esri.com/t5/python-questions/data-access-module-vs-numpy-summarise-table/m-p/629681#M48999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter... I haven't got time to put this in the attached document, but use this as example 3 which I will append to at a later date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example 3&amp;nbsp;&amp;nbsp; Very verbose!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets go back to the input array which has the times in the unique classes by time category.&amp;nbsp; Now, the times are going to be further broken down, this time, just using sums of the existing data.&amp;nbsp; Beginning with array a...&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; a&lt;/P&gt;&lt;P&gt;array([(u'A', u'A_', u'Hosp', 0, 4, 0, 0, 2, 2, 1, 3),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (u'A', u'B_', u'Hosp', 0, 0, 0, 2, 6, 8, 5, 0),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (u'A', u'C_', u'Hosp', 0, 0, 0, 0, 4, 0, 0, 4),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (u'A', u'D_', u'Hosp', 0, 0, 0, 0, 2, 0, 3, 2),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (u'B', u'A_', u'Hall', 0, 0, 3, 0, 0, 2, 2, 0),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (u'B', u'B_', u'Hall', 0, 0, 0, 3, 2, 4, 0, 0)],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dtype=[('County', '&amp;lt;U20'), ('Town', '&amp;lt;U20'), ('Destin', '&amp;lt;U20'), ('t0', '&amp;lt;i4'), ('t5', '&amp;lt;i4'), ('t10', '&amp;lt;i4'), ('t15', '&amp;lt;i4'), ('t20', '&amp;lt;i4'), ('t25', '&amp;lt;i4'), ('t30', '&amp;lt;i4'), ('t60', '&amp;lt;i4')])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pull out the dtype for the first 3 columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; names = list(a.dtype.names[:3])&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; names&lt;/P&gt;&lt;P&gt;['County', 'Town', 'Destin']&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; dt_0 = a.dtype.descr[:3]&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; dt_0&lt;/P&gt;&lt;P&gt;[('County', '&amp;lt;U20'), ('Town', '&amp;lt;U20'), ('Destin', '&amp;lt;U20')]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Produce the sums for the columns so they can be used later on.&amp;nbsp; There are several ways of doing this, but I will stick with the easy to understand and verbose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dtype for the sums can be constructed as in previous ways, representing the sums from up to, but not including the 2nd number (ie t0_20 means from 0 up to &amp;lt;20 minutes).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; s0 = np.sum(a[['t0','t5','t10','t15']].tolist(),axis=1)&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; s1 = np.sum(a[['t20','t25']].tolist(),axis=1)&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; s2 = np.sum(a[['t30','t60']].tolist(),axis=1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now assemble the new array.&lt;/P&gt;&lt;P&gt;Get the first part&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; names&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # use the names and formats from the input array to get a slice&lt;/P&gt;&lt;P&gt;['County', 'Town', 'Destin']&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; b = a[names]&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; b&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # this is now our sub array from the input array&lt;/P&gt;&lt;P&gt;array([(u'A', u'A_', u'Hosp'), (u'A', u'B_', u'Hosp'), (u'A', u'C_', u'Hosp'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (u'A', u'D_', u'Hosp'), (u'B', u'A_', u'Hall'), (u'B', u'B_', u'Hall')],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dtype=[('County', '&amp;lt;U20'), ('Town', '&amp;lt;U20'), ('Destin', '&amp;lt;U20')])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for some magic...&lt;/P&gt;&lt;P&gt;We are going to use the sliced array (b) and append the results from out summation.&amp;nbsp; All that is needed is the field names, the sums and some fluff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; from numpy.lib import recfunctions as rfn&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; final&amp;nbsp; = rfn.append_fields(b, ['t0_20','t20_30','t30_60'], [s0,s1,s2], usemask=False)&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; final&lt;/P&gt;&lt;P&gt;array([(u'A', u'A_', u'Hosp', 4, 4, 4), (u'A', u'B_', u'Hosp', 2, 14, 5),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (u'A', u'C_', u'Hosp', 0, 4, 4), (u'A', u'D_', u'Hosp', 0, 2, 5),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (u'B', u'A_', u'Hall', 3, 2, 2), (u'B', u'B_', u'Hall', 3, 6, 0)],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dtype=[('County', '&amp;lt;U20'), ('Town', '&amp;lt;U20'), ('Destin', '&amp;lt;U20'), ('t0_20', '&amp;lt;i8'), ('t20_30', '&amp;lt;i8'), ('t30_60', '&amp;lt;i8')])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the fancy reshaping...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;final.reshape((6,1))&lt;/P&gt;&lt;P&gt;array([[(u'A', u'A_', u'Hosp', 4, 4, 4)],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [(u'A', u'B_', u'Hosp', 2, 14, 5)],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [(u'A', u'C_', u'Hosp', 0, 4, 4)],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [(u'A', u'D_', u'Hosp', 0, 2, 5)],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [(u'B', u'A_', u'Hall', 3, 2, 2)],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [(u'B', u'B_', u'Hall', 3, 6, 0)]],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dtype=[('County', '&amp;lt;U20'), ('Town', '&amp;lt;U20'), ('Destin', '&amp;lt;U20'), ('t0_20', '&amp;lt;i8'), ('t20_30', '&amp;lt;i8'), ('t30_60', '&amp;lt;i8')])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 21:54:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/data-access-module-vs-numpy-summarise-table/m-p/629681#M48999</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-05-17T21:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Data Access Module vs NumPy: Summarise Table</title>
      <link>https://community.esri.com/t5/python-questions/data-access-module-vs-numpy-summarise-table/m-p/629682#M49000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan&lt;/P&gt;&lt;P&gt;Thanks for the following. I'll work through it tonight and get back to you tomorrow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2016 10:47:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/data-access-module-vs-numpy-summarise-table/m-p/629682#M49000</guid>
      <dc:creator>PeterWilson</dc:creator>
      <dc:date>2016-05-18T10:47:55Z</dc:date>
    </item>
  </channel>
</rss>

