五要素: 最小值,最大值,第一四分位,第三四分位,中位数。
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 30 00:31:48 2021
@author: Quan Wang(Sunny)
"""
# -*- coding: utf-8 -*-
import seaborn as sns
tips = sns.load_dataset("tips")
print(tips.head())
sns.boxplot(tips['total_bill'])
tips.describe()
print(tips.describe())
sns.boxplot(x='sex',y='total_bill',data=tips)
sns.boxplot(x='day',y='total_bill',hue='sex',data=tips,palette='husl')
sns.boxplot(x='day',y='total_bill',hue='time',data=tips)