infineac.topic_extractor.get_topics_per_company#

infineac.topic_extractor.get_topics_per_company(df: DataFrame) DataFrame[source]#

Returns the topics and categories per company. The topics -1 and -2 are mapped to the “standard” and “empty” categories. The topics -1 and -2 are not included in the topics per company.

Parameters:

df (pl.DataFrame) – DataFrame containing the topics and the company names as well as the year and the three strategies.

Returns:

DataFrame containing the topics, categories and strategies per company.

Return type:

pl.DataFrame