My h.csv file contains 7 columns of float data type and the delimiter is a white space
my program in python is as follows
import pandas as pd
import csv
import numpy as np
h = np.array(pd.read_csv("h.csv", delim_whitespace=True))
print(h)
print("\n")
X = h[:,0:6]
print(X)
print("\n")
y = h[:,6]
print(y)
print("\n")
I am encountering the problem with the print statement that prints y;
Actually it has to print the last column of my file, but it is not doing so.
The arrays 'h' and 'X' are printing well. The print 'y' statement is not printing the last column of the matrix, but printing some random numbers.