标签: python list numpy
我正在尝试将列表转换为numpy数组。这样,所有整数都将转换为字符。我该如何避免呢?
numpy
import numpy as np X_man = np.array([600, 'France', 'Female', 40, 3, 60000, 2, 1, 1, 50000]) print(X_man) output: ['600' 'France' 'Female' '40' '3' '60000' '2' '1' '1' '50000']