After looking through some other questions I can't seem to find a solution for my code. what is causing "too many indices for an array"
I have followed the steps of this question to get to this point, where x = training[:,1]
gives me the error.
How to access the ith column of a NumPy multidimensional array?
import numpy as np
csv = np.genfromtxt('admission_predict.csv', delimiter=',', names=True)
training = csv[:300] #first 300 lines
testing = csv[300:] #last 100 lines
x = training[:,1]
print(x)