Seaborn · Function
countplot
Draw bars showing how many observations fall in each categorical bin. Use hue to compare subgroups and stat to show values such as percentages.
Last updated
- Since
- 0.13.0 (native_scale)
Syntax
seaborn.countplot(data=None, *, x=None, y=None, hue=None, order=None, hue_order=None, orient=None, color=None, palette=None, saturation=0.75, fill=True, hue_norm=None, stat='count', width=0.8, dodge='auto', gap=0, log_scale=None, native_scale=False, formatter=None, legend='auto', ax=None, **kwargs)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
histplotbarplotcatplot