infineac.topic_extractor.plot_category_distribution#
- infineac.topic_extractor.plot_category_distribution(df: DataFrame, aggregate: list[str] = [], category_var: str = 'category') DataFrame[source]#
Plots the category distribution for the given DataFrame df and the given aggregate.
- Parameters:
df (pl.DataFrame) – DataFrame containing the categories and the strategies.
aggregate (list[str], default: []) – List of columns to aggregate by.
- Returns:
DataFrame containing the category distribution.
- Return type:
pl.DataFrame