graphlab SFrame sum all values in a column
<p>How to sum all values in a column of SFrame graphlab. I tried looking  into the official documentation and it is given only for SaArray(<a href="https://turi.com/products/create/docs/generated/graphlab.SArray.sum.html#graphlab.SArray.sum" rel="nofollow">doc</a>)
without any example.</p>

<pre><code>&gt;&gt;&gt; import graphlab as gl
&gt;&gt;&gt; sf = gl.SFrame({'foo':[1,2,3], 'bar':[4,5,6]})
&gt;&gt;&gt; sf
Columns:
        bar     int
        foo     int

Rows: 3

Data:
+-----+-----+
| bar | foo |
+-----+-----+
|  4  |  1  |
|  5  |  2  |
|  6  |  3  |
+-----+-----+
[3 rows x 2 columns]
&gt;&gt;&gt; sf['foo'].sum()
6
</code></pre>

python graphlab