Distribution Plots¶
Let's discuss some plots that allow us to visualize the distribution of a data set. These plots are:
- distplot
- jointplot
- pairplot
- rugplot
- kdeplot
In [8]:
import seaborn as sns
%matplotlib inline
In [9]:
tips = sns.load_dataset('tips')
In [11]:
tips.head()
Out[11]:
distplot¶
The distplot shows the distribution of a univariate set of observations.
In [15]:
sns.distplot(tips['total_bill'])
Out[15]:
In [14]:
sns.distplot(tips['total_bill'],kde=False)
Out[14]:
In [6]:
sns.distplot(tips['total_bill'],kde=False,bins=30)
Out[6]:
In [16]:
sns.distplot(tips['total_bill'],kde=False,bins=130)
Out[16]:
In [23]:
sns.distplot(tips[["size","totl_bill"]],kde=False)
No comments:
Post a Comment