From e33cd9d13d78ca866646b7eba1c44f4150c71669 Mon Sep 17 00:00:00 2001 From: marcinpurtak Date: Wed, 15 Nov 2023 12:44:22 +0100 Subject: [PATCH] Revert of changes for desired columns --- viadot/tasks/genesys.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/viadot/tasks/genesys.py b/viadot/tasks/genesys.py index 2655552bf..942249ac2 100644 --- a/viadot/tasks/genesys.py +++ b/viadot/tasks/genesys.py @@ -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("-", "")