mean_data = np.append(mean_data, [[ur, ua, np.mean(data[samepoints, -1])]],
    axis=0)
How can I prevent the TypeError: list indices must be integers, not tuple when copying a python list to a numpy array?