I am trying to write a code in python to sum the values of a feature in pandas. the data inside the feature are say 55, 60, 8, 15 and the name of the feature is say age_col. the age_col.sum() gives following result. 5560815 using for loop as
for i in range(len(age_col)):
sum += age_col[i]
gives following error
"TypeError: unsupported operand type(s) for +: 'int' and 'str'" dtype returns data type 'object'.
I also used all the methods to convert it into float or numeric value.
Please help