Complete the code to set the plot title to 'Sales Data'.
df.plot() plt.[1]('Sales Data') plt.show()
The plt.title() function sets the title of the plot.
Complete the code to label the x-axis as 'Month'.
df.plot() plt.[1]('Month') plt.show()
The plt.xlabel() function sets the label for the x-axis.
Fix the error in the code to set the figure size to 10 by 5 inches.
df.plot(figsize=[1])
plt.show()The figsize parameter expects a tuple like (width, height).
Fill both blanks to set the plot title to 'Revenue' and y-axis label to 'Amount'.
df.plot() plt.[1]('Revenue') plt.[2]('Amount') plt.show()
plt.title() sets the plot title and plt.ylabel() sets the y-axis label.
Fill all three blanks to set figure size to (8,4), title to 'Profit', and x-axis label to 'Quarter'.
df.plot(figsize=[1]) plt.[2]('Profit') plt.[3]('Quarter') plt.show()
Use a tuple for figsize, then plt.title() and plt.xlabel() for labels.
