Question

Which of the following methods in the Seaborn library is used to create a scatter plot to visualize the relationship between two variables x and y?

A sns.lineplot(x='x', y='y', data=df)
B sns.scatterplot(x='x', y='y', data=df)
C sns.histplot(x='x', y='y', data=df)
D sns.boxplot(x='x', y='y', data=df)
E sns.heatmap(x='x', y='y', data=df)
Practice Next

Hey! Ask a query