[Python] Python How to convert ['0.12' '0.23'] <class 'numpy.ndarray'> to a normal numpy array

Discussão em 'Python' iniciado por Stack, Março 15, 2025.

  1. Stack

    Stack Membro Participativo

    I am using a package that is fetching values from a csv file for me. If I print out the result I get ['0.12' '0.23']. I checked the type, which is <class 'numpy.ndarray'> I want to convert it to a numpy array like [0.12, 0.23]. I tried np.asarray(variabel) but that did not resolve the problem.

    Continue reading...

Compartilhe esta Página