0
How do I convert an array from one data type to another in Numpy?
4 ответов
+ 3
Have you tried to google it?
One way could be to use the astype() method
https://www.geeksforgeeks.org/change-data-type-of-given-numpy-array/
https://numpy.org/doc/stable/reference/generated/numpy.ndarray.astype.html
+ 4
Please link your code so we can see what your are trying to do
0
I've tried but it keeps giving me error... I want to convert a ‘float’ to a ‘string’
0
Lisa thanks... It worked... Saw my errors and corrected them... Thanks a lot