ArcGIS python 2.5  script - create a stats table  by iterating the recordset
<p>I need to iterate  the fields and compute sum of few columns group by the value in another column . </p>

<p>For ex base table is </p>

<pre><code>C1 C2 C3 C4  C5
a1  2  3  4  q
a1  4  5  7  a
a2 34 56  6  e
a2  4  5  5  5
a3  3  3  3  4
a3  3  3  3  3
</code></pre>

<p>The result table should be </p>

<pre><code>   c2 c3 c4
a1  6  8 11
a2 38 61 11
a3  6  6  6
   50 75 28
</code></pre>

<p>I am able to iterate the fields to get the value of each field but got stuck in creating a two dimension matrix of result format. I was looking into 2 dimension array to achieve this scenario.</p>
