Skip to content

Commit

Permalink
Merge pull request #815 from marcinpurtak/feature/webmsg_column__name…
Browse files Browse the repository at this point in the history
…_update

Revert of changes for desired columns
  • Loading branch information
Rafalz13 authored Nov 15, 2023
2 parents dd95ceb + e33cd9d commit 5b64a7f
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions viadot/tasks/genesys.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,22 +493,8 @@ def run(
temp_dict["endTime"] = json_file.get("endTime")
data_list.append(temp_dict)

desired_order = [
"startTime",
"endTime",
"LOB",
"CustomerOutcomeResult",
"CustomerOutcomeTrack",
"LastUtterance",
"Final Sub Intent",
"SubIntent",
"Final Main Intent",
"conversationId",
]

df = pd.DataFrame(data_list)
df = df[desired_order]
df.rename(columns={"LastUtterance": "CustomerTextInput"}, inplace=True)
df = df[df.columns[-1:]].join(df[df.columns[:-1]])

start = start_date.replace("-", "")
end = end_date.replace("-", "")
Expand Down

0 comments on commit 5b64a7f

Please sign in to comment.