Unfortunately it doesn't work: I have a dataframe named df
This consists of 5 columns and 100 rows.
I want to plot on the x axis column 0 (time) and on the y-axis the corresponding values .
I tried:
figure, ax1 = plt.subplots()
ax1.plot(df.columns[0],df.columns[1],linewidth=0.5,zorder=1, label = "Force1")
ax1.plot(df.columns[0],df.columns[2],linewidth=0.5,zorder=1, label = "Force2")
But this is not working.
I can not directly address the column name - I have only the possibility to use the number of the column (like 1, 2 or number 3).
Thanks for your help!!!
Helmut
.iloc[]?