I have a numpy matrix X, and I tried to change the datatype of column 1 using the code below:
X[:, 1].astype('str')
print(type(X[0, 1]))
but I got the following result:
<type 'numpy.float64'>
Anyone know why the type was not changed to str ? And what is a correct way to change the column type of X?Thanks!