Ich versuche, Werte aus einer CSV-Datei zu lesen, aber ich erhalte einen Fehler.Python. NumPy Datei E/A. Sortierung. Arrays
Hier ist Code-Schnipsel:
import numpy as np
file_read=np.loadtxt('stock_px.csv', delimiter=',')
print ("Restored data: \n" + str(file_read))
Hier ist Fehlermeldung:
ValueError: could not convert string to float:
Was ist der Inhalt von 'stock_px.csv'? –
Mögliches Duplikat von [numpy.loadtxt, ValueError: konnte String nicht in float konvertieren] (http://stackoverflow.com/questions/16729210/numpy-loadtxt-valueerror-could-not-convert-string-to-float) –