・In Japanese Prerequisites ・Python ・How to install numpy
■Description Converts the strings and data in an array to float type numbers. ■Example
import numpy as np a = list(['1' , '2' , '3' , '4']) b = np.asfarray(a) print(b) ⇒ [1. 2. 3. 4.]