import numpy as np data= np.loadtxt("aksel.txt",delimiter=',') X=data[:,:3] y=data[:,3] print(X,y)