Index t Heatflow Tr
[#] [s] [mW] [°C]
0 0,00000e+00 9,39705e-02 -7,00000e+01
1 1,00000e+00 9,01634e-02 -7,00000e+01
2 2,00000e+00 8,46441e-02 -7,00000e+01
3 3,00000e+00 7,92335e-02 -7,00000e+01
When using
filename = 'HA_A001_PBS.txt'
data = np.loadtxt(filename, skiprows = 2)
Temp = data[:,3]
HeatFlow = data[:,2]
the ValueError: could not convert string '1,00000e+00' to float64 at row 0, column 2 occurs
How do I convert these types of strings to floats to plot this type of data?
Try to use
converters=parameter:Prints: