Answers for "sns.pairplot()"

3

seaborn pairplot

>>> import seaborn as sns; sns.set(style="ticks", color_codes=True)
>>> iris = sns.load_dataset("iris")
>>> g = sns.pairplot(iris)
Posted by: Guest on May-17-2020
0

pairplot with selected field

pp = sns.pairplot(data=data,
                  x_vars=['age'],
                  y_vars=['weight', 'height', 'happiness'])
Posted by: Guest on August-13-2020
0

seaborn pairplot

import seaborn as sns
sns.set_theme(style="ticks")
df = sns.load_dataset("penguins")
sns.pairplot(df, hue="species")
Posted by: Guest on October-27-2021

Browse Popular Code Answers by Language