Skip to content

Commit

Permalink
fix wordcloud - for not stats column
Browse files Browse the repository at this point in the history
  • Loading branch information
paulzierep committed Jan 25, 2024
1 parent 88ddb91 commit a5ac8c8
Show file tree
Hide file tree
Showing 2 changed files with 1,322 additions and 513 deletions.
3 changes: 3 additions & 0 deletions bin/create_wordcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ def get_wordcloud(community_tool_path: str, mask_figure: str, stats_column: str,
stats_column in community_tool_stats
), f"Stats column: {stats_column} not found in table!" # check if the stats column is there

# some tools are not used at all
community_tool_stats[stats_column] = community_tool_stats[stats_column].fillna(value=0)

# create the word cloud
frec = pd.Series(
community_tool_stats[stats_column].values, index=community_tool_stats["Galaxy wrapper id"]
Expand Down
Loading

0 comments on commit a5ac8c8

Please sign in to comment.