I have been doing some reading from fer 2013 csv file containing three columns emotion, pixel value and usage. the pixel value is said to have given in string format and I want to rescale my pixel values from 0-255 to between 0-1 , so I need to convert it to int/float and then only I would be able to do any mathematical operations on them.
I first tried to read the csv file using pandas read_csv function and then using iloc I read the value of the pixel value in a variable called x_tr. Then upon printing its value it shows its d type as object.confused on that too.x_tr is numpy ndarray then how should I convert it into integral value. I tried the x_tr.astype(np.float) but it gave up the error as mentioned in the code.
x_tr = train.iloc[:,1].values
x_tr
what I tried to convert to float
x_tr = train.iloc[:,1].values
x_tr = x_tr.astype(np.float)
and what I've got as error
Please Help.

