I wanted to use the function .astype(float) to convert an array named Defocus_Array to float. But I got this error.
>>> Defocus_Array.astype(float)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: could not convert string to float: defocus
I understand that "defocus" the name of the data extracted is the problem. I tried to delete it with numpy.delete but it doesn't work. How can I delete it to convert my array? Or is it another way to convert my array? Thank you.