I have two dataframes, with unique x and y coordinates, and I want to plot them in the same figure.
I am now plotting two dataframes in same figure as such:
ax = df1.plot() df2.plot(ax=ax)
Basically pandas' plot function returns the matplotlib object, which you can then pass to the second dataframe.
Edit by J.A.Cado
I would like to add that I had to specify the x and y values for my code:
ax = df1.plot(x='Lat', y='Lon') df2.plot(ax=ax, x='Lat', y='Lon')