My data:
absent_data.head()
Before it was running smooth, this is my code:
cnames = ['Transportation expense', 'Distance from Residence to Work',
'Service time', 'Age', 'Work load Average/day ', 'Hit target',
'Son', 'Pet', 'Weight','Body mass index',
'Absenteeism time in hours']
#Nomalization
for i in cnames:
print(i)
absent_data[i] = (absent_data[i] - min(absent_data[i]))/(max(absent_data[i]) - min(absent_data[i]))
Now getting this error:
TypeError Traceback (most recent call last) in () 2 for i in cnames: 3 print(i) ----> 4 absent_data[i] = (absent_data[i] - min(absent_data[i]))/(max(absent_data[i]) - min(absent_data[i]))
TypeError: 'numpy.float64' object is not callable
It was float before too.