my data is like below:
X_train =
[1,0,0,0,0,0]
[0,0,0,0,0,1]
[0,1,0,0,0,0]
…
and I want to convert it tensor:
x_train_tensor = Variable(torch.Tensor(X_train.values))
but there is error like this:

TypeError: can’t convert np.ndarray of type numpy.object_. The only supported types are: double, float, float16, int64, int32, and uint8.

how can i fix this error?