About Lesson
Save a plot to a file for use in reports or presentations.
# Save a plot as an image
plot = df.plot(x='Month', y='Sales', kind='line', title='Monthly Sales', marker='o', color='blue')
plt.ylabel('Sales Amount')
plt.savefig('monthly_sales_plot.png') # Save as a PNG file
plt.show()