Complete the code to import seaborn with its common alias.
import [1] as sns
Seaborn is commonly imported as sns. The import statement uses the full package name seaborn.
Complete the code to create a matplotlib figure and axis.
fig, [1] = plt.subplots()figure or axes instead of ax.plot which is a function, not a variable.The common variable name for the axis object is ax. The plt.subplots() returns a figure and axis.
Fix the error in the code to plot a seaborn scatterplot on the matplotlib axis.
sns.scatterplot(data=df, x='total_bill', y='tip', ax=[1])
plt or figure instead of the axis.The ax parameter expects the matplotlib axis object, commonly named ax.
Fill both blanks to set the title and label the x-axis using matplotlib on the axis object.
[1].set_title('Total Bill vs Tip') [2].set_xlabel('Total Bill ($)')
plt instead of ax.df.Both methods set_title and set_xlabel are called on the axis object ax.
Fill all three blanks to create a seaborn histogram on a matplotlib axis, set the title, and show the plot.
fig, [1] = plt.subplots() sns.histplot(data=df, x='total_bill', ax=[2]) [3].set_title('Histogram of Total Bill') plt.show()
figure instead of ax for the axis.The axis object ax is used for the subplot, passed to seaborn, and to set the title.