Not been able to solve that problem on perceptron

Please help me the code is I am the same as Pratyush sir teaches in the session but I am not able to run that.

Make sure that all the numerical values in the X_train or Y_train are of data types float or int.