I have some data organized with columns like this: time1, value1, time2, value2, time3, value3
and so on. These are the names of the columns, but they do not have headers. The data starts as numbers and is identified separately in the document. I can graph the first pair of data fine, but I do not know how to get multiple plots to appear on the same graph.
My code looks like this
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv('exp_200_ALD_current.csv', skiprows=35, usecols=[0, 1], index_col=0)
print(df.head())
df.plot(legend=False, title="Current density vs. Time", xlabel="Time (h)", ylabel="Current density (mA/cm^2)")
plt.show()
Which as expected produces a plot of the first time and value. I would like all of them to appear on the same graph.