I plotted this pairplot correlating only one features with all the others, how can i visualize it in a better way? I need to visualize 4 columns. In the official documentation of pairplot i can't find the option.
This is the part of the code:
sns.pairplot(data=dftrain,
y_vars=['medv'],
x_vars=dftrain.columns[:-1])
The shape of a
pairplot
can't be changed. But, you can create a similarrelplot
if you convert the dataframe to long form.Here is some simple example code, starting from dummy data: