countplot
函数创建基本的频率条形图:sb.countplot(data = df, x = 'cat_var')
base_color = sb.color_palette()[0]
sb.countplot(data = df, x = 'cat_var', color = base_color)
base_color = sb.color_palette()[0]
cat_order = df['cat_var'].value_counts().index
# 使用 "order" 参数设置排序方式
sb.countplot(data = df, x = 'cat_var', color = base_color, order = cat_order)