I am multiplying float value with numpy array but getting these message:
can't multiply sequence by non-int of type 'float'.
I have read data from csv file which contain image pixels in each row. I want to make a matrix of whole pixel column(each row has 2034 pixel values) and then multiply it with other matrices of float values. Is each pixel value in the row considered as the string and that causing the error? To show the error I have multiplied first row with 0.1 values it shows for a :[ '70 80 82 72 58 58 60 63 ....34' ]
df=pd.read_csv('C:/Python36(64bit)/programs/intern/fer2013.csv')
df=df.drop('Usage',axis=1)
train=df[:28709]
test= df[28709:30000]
train_x=train.drop('emotion',axis=1)
train_y=train['emotion']
test_x=test.drop('emotion',axis=1)
test_y=test['emotion']
a=np.array(train_x.iloc[0])
b=a*0.1