depictr.explore_categorical#

depictr.explore_categorical(data, x, group=None, proportion=True, title=None)#

Bar chart of a categorical variable, optionally grouped (dodged).

Parameters:
  • data (pandas.DataFrame)

  • x (str) – The categorical column.

  • group (str, optional) – A second categorical column mapped to fill, drawn side by side.

  • proportion (bool) – Show proportions within each group rather than raw counts.

  • title (str, optional)

Return type:

plotnine.ggplot