numpy list comprehension syntax,[[X[i][j] for j in range(len(X[i]))] for i in range(len(X))]