pairplot¶
pairplot will plot pairwise relationships across an entire dataframe (for the numerical columns) and supports a color hue argument (for categorical columns).
In [1]:
import seaborn as sns
%matplotlib inline
tips = sns.load_dataset('tips')
tips.head(1)
Out[1]:
In [5]:
sns.pairplot(tips)
Out[5]:
In [6]:
sns.pairplot(tips,hue='sex')
Out[6]:
In [4]:
sns.pairplot(tips,hue='sex',palette='coolwarm')
Out[4]:
In [7]:
sns.pairplot(tips,hue='smoker')
Out[7]:
No comments:
Post a Comment