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

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)