import numpy as np data = np.loadtxt("EP305Formal2.txt",float,skiprows=1) xcol, ycol = 0, 12 x, y = data[:,xcol], data[:,ycol] print(y)
xx = 1 # break at column 1 x, y = data[:xx], data[xx:] # x gets first column, y gets the rest print ("X: ", x) print ("Y: ", y)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)