Hey I want to plot 2 DataFrames in one Figure in Pandas.
My DataFrame(s) look like this(excerpt from DataFrame):
Timestamp Distance Speed Heart Rate Pace
1 0.0 3.02 2.353079 89 425.0
2 1.0 5.10 1.847000 92 541.0
3 2.0 7.48 1.969000 96 508.0
4 4.0 14.13 2.902000 93 345.0
5 10.0 28.01 2.967000 96 337.0
6 11.0 30.96 2.995000 101 334.0
7 12.0 33.79 2.995000 104 334.0
8 13.0 36.56 2.967000 114 337.0
They both have different number of items but otherwise have the same format.
and I am plotting it with this code.
ax = dataframe1[['Speed','Heart Rate','Pace']].plot(subplots=True,
title=['Speed in m/s','Heart Rate in bmp','Pace in min/km',],
x=dataframe1['Timestamp'],)
What I want to do now is to plot the HeartRate from DateFrame2 in the same subplot as the HeartRate from DataFrame1 (in a different color) but I don't know how .