Pandas: Exception while plotting two data frames on the same graph
you are trying to use the pd.Series
points_of_interest[ASK_PRICE]
with plot(kind='scatter')
. You assumed it would naturally take the index vs the values. That is unfortunately not true.
Try this
axes = all_data[ASK_PRICE].plot(figsize=(16, 12))poi = points_of_interest[ASK_PRICE]poi.reset_index().plot.scatter(0, 1, ax=axes)pylab.show()