I am trying to plot a graph with the train data that I have from this website. The train data consists of many column many rows data, but I wanted to plot the graph column by column.
I managed to figure out a working code to only print out a column, however I do not know how to plot graph for that particular column. For my below code, the last two lines are my attempt to try plot the single column graph but it is not working. Can anyone help me on how I can successfully plot the graph of that column?
import csv
import matplotlib.pyplot as plt
with open("C://Users/RichardStone/Pycharm/Projects/train_data.csv", "r") as csv_file:
csv_reader = csv.reader(csv_file, delimiter=',')
for lines in csv_reader:
print(lines[1])
plt.plot(lines[1])
plt.show()