1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
import matplotlib.pyplot as plt listx = [] listy = [] with open("testFile.csv") as f: data = f.readlines() print(data[1:1000]) for i in range(0, 1000): listx.append(data[i].split(", ")[0]) # for value in listx: # print(value, end="\n") plt.plot(listx) plt.show()