Correlation & Plotting - Question 9

Last Updated :
Discuss
Comments

What type of plot does the following code generate?

Python
import pandas as pd
df = pd.DataFrame({'A': [1, 2, 3, 4], 'B': [10, 15, 25, 30]})
pd.plotting.scatter_matrix(df)


Pair plot

Scatter plot

Line plot

Histogram

Tags:
Share your thoughts in the comments