I managed to plot a few charts out with using this for loop:
for i in df.columns[2:7]:
df.plot.scatter(x='out_date', y=i, figsize = (10,7))
plt.axvline(x=cutoff_date, color='r')
plt.xlabel('out date')
plt.ylabel('sucesses')
I wanted to add titles to the plots using the header of a different dataframe with the following code but the title will only be added to the last plot instead of every plot:
for x in df2.columns[67:72]:
plt.title(x)
Is there a way to fix this?