Perceptron Implementation

While using ones=np.ones(int(X.shape[0]),1)
getting an error which says data type not understood