pairplot with selected field 1

pairplot with selected field

pp = sns.pairplot(data=data,
                  x_vars=['age'],
                  y_vars=['weight', 'height', 'happiness'])

Here is what the above code is Doing:
1. We’re using the seaborn library to create a pairplot.
2. We’re telling the pairplot to use the data variable as the data source.
3. We’re telling the pairplot to use the age column as the x-axis.
4. We’re telling the pairplot to use the weight, height, and happiness columns as the y-axis.

Similar Posts