Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Fix missing Number column in the annotated dataset
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Jung (VMware) <[email protected]>
  • Loading branch information
Anna Jung (VMware) committed Dec 1, 2021
1 parent ec7b4f9 commit 7c401c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ml-conversational-analytic-tool/featureVector.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ def pullStringConversation(self, export_filename="", export=True):
# Store each interaction and pull URL for export
string_conversations = []
pull_urls = []
pull_numbers = []

for index, row in self.raw_data.iterrows():
# Make pull message
Expand All @@ -181,9 +182,11 @@ def pullStringConversation(self, export_filename="", export=True):
comment_row["Body"])
string_conversations.append(conversation.encode("ascii", "ignore").decode())
pull_urls.append(row["URL"])
pull_numbers.append(row["Number"])

# Export converation field dataset
export_df = pd.DataFrame()
export_df["Number"] = pull_numbers
export_df["URL"] = pull_urls
export_df["Thread"] = string_conversations

Expand Down

0 comments on commit 7c401c7

Please sign in to comment.