title: Summing each array inside list
body: <p>I have a list of arrays generated from another function:</p>
  <pre><code>testGroup = [array([18]), array([], dtype=int64), array([56, 75, 55, 55]), array([32])]
  </code></pre>
  <p>I'd like to return the sum of each individual array in the list, with the empty ones returning as zero</p>
  <p>I've tried using numpy, as per the documentation:</p>
  <pre><code>np.sum([[0, 1], [0, 5]], axis=1)
  array([1, 5])np.sum([[0, 1], [0, 5]], axis=1)
  array([1, 5])
  </code></pre>
  <p>But when I try <code>np.sum(testGroup, axis=1)</code> I get an axis error as I suppose the empty arrays have a dimension less than one?</p>
  <p>I've also tried summing it directly <code>arraySum = sum(testGroup)</code> but get a ValueError</p>
  <p>Any ideas on how to achieve a sum of the arrays inside the
  <code>testGroup</code> list?</p>