np how to sum columns code example Example: sum elements array with step numy b = [sum(a[current: current+5]) for current in xrange(0, len(a), 5)]