row is a list of arrays. ```numpy.mean(row, axis=0)``` will work here.