Skip to content

Commit

Permalink
Merge pull request #83 from navigating-stories/issue82
Browse files Browse the repository at this point in the history
solves #issue82 by fixing the comparison between a Series and a list
  • Loading branch information
ThijsVroegh committed Sep 3, 2024
2 parents b207f20 + 61d5458 commit 0b05b9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions orangecontrib/storynavigation/modules/actionanalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ def __filter_custom_word_matches(self, story_elements_df, selected_stories, cust
current_frame['classification'] = c_col
current_frame.rename(columns={cust_tag_col: 'category'}, inplace=True)
combined_df = pd.concat([combined_df, current_frame], axis=0)

combined_df = combined_df[combined_df['category'] not in ['?', 'nan']]
combined_df = combined_df[~combined_df['category'].isin(['?', 'nan'])]
return combined_df.reset_index(drop=True)

def calculate_customfreq_table(self, df, selected_stories=None):
Expand Down
5 changes: 3 additions & 2 deletions orangecontrib/storynavigation/modules/actoranalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ def __filter_custom_word_matches(self, story_elements_df, selected_stories, cust
current_frame['classification'] = c_col
current_frame.rename(columns={cust_tag_col: 'category'}, inplace=True)
combined_df = pd.concat([combined_df, current_frame], axis=0)

combined_df = combined_df[combined_df['category'] not in ['?', 'nan']]

combined_df = combined_df[~combined_df['category'].isin(['?', 'nan'])]

return combined_df.reset_index(drop=True)

def __filter_rows(self, story_elements_df, pos_tags):
Expand Down

0 comments on commit 0b05b9c

Please sign in to comment.