From cf59206924bf7b3df960cf7d26314ce024be5b82 Mon Sep 17 00:00:00 2001 From: paulzierep Date: Thu, 15 Aug 2024 14:59:47 +0200 Subject: [PATCH] Update bin/create_wordcloud.py Co-authored-by: Nicola Soranzo --- bin/create_wordcloud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/create_wordcloud.py b/bin/create_wordcloud.py index 72ded669..23057a59 100644 --- a/bin/create_wordcloud.py +++ b/bin/create_wordcloud.py @@ -29,7 +29,7 @@ def prepare_data(table_path: str, name_col: str, stat_col: str) -> Dict: table[stat_col] = table[stat_col].fillna(value=0) # create dictionary with key being the name and value the stat/counts - freq = pd.Series(table[stat_col].values, index=table[name_col]).to_dict() # type: Dict + freq: Dict = pd.Series(table[stat_col].values, index=table[name_col]).to_dict() return freq