Skip to content

Commit

Permalink
solves #issue82 by fixing the comparison between a Series and a list
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijsVroegh committed Aug 14, 2024
1 parent b207f20 commit dee9988
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion orangecontrib/storynavigation/modules/actionanalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ def __filter_custom_word_matches(self, story_elements_df, selected_stories, cust
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'] 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
4 changes: 3 additions & 1 deletion orangecontrib/storynavigation/modules/actoranalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ def __filter_custom_word_matches(self, story_elements_df, selected_stories, cust
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'] 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 dee9988

Please sign in to comment.