I am getting this error in the below code. I error that I receive doesn't give me any clue to address. Please help.
Error: TypeError: '<' not supported between instances of 'str' and 'int'
Code:
from pandas import read_csv
from numpy import set_printoptions
from sklearn.preprocessing import MinMaxScaler
filename = 'Data/pima-indians-diabetes.csv'
names = ['preg', 'plas', 'pres', 'skin', 'test', 'mass', 'pedi', 'age', 'class']
df = read_csv(filename,names=names)
array = df.values
X = array[:,:8]
Y = array[:,8]
scaler = MinMaxScaler(feature_range=(0,1))
reScaledX = scaler.fit_transform(X)
print(reScaledX)