timeSeriseStats = np.zeros(shape=(49, 4)) count = 0 for did, dance in enumerate(velocities): if did != 9: timeSeriseStats[count, 0] = np.mean(dance[1]) timeSeriseStats[count, 1] = np.median(dance[1]) timeSeriseStats[count, 2] = np.max(dance[1]) timeSeriseStats[count, 3] = np.std(dance[1]) count += 1