I have this code in python. Importing CSV file.
Location = r'C:\assign\lrdataset.csv'
df = pd.read_csv(Location, names=['Xi','Yi'])
print(df.columns)
Print shows this:
Xi Yi
0 -2.552990 -218.408328
1 1.764052 155.118872
2 -1.791328 -128.884326
3 -1.214077 -91.571734
4 -1.444940 -122.267726
5 0.195070 12.248124
6 1.480515 135.444007
........
But i want to take this two input and output values into two different variables, in array forms. Like this.
X=np.array([[-2.552990],[1.764052],[-1.791328],[-1.214077]])
Y=np.array([[-218.408328],[155.118872],[-128.884326],[-91.571734]])