Convert Matplotlib Plot Dataframe Python