From ac1de999fcb1ae5dbb304b883b1b28df11e5136f Mon Sep 17 00:00:00 2001 From: Caroline Berto Araujo <159922231+cbertopt@users.noreply.github.com> Date: Fri, 20 Sep 2024 15:31:13 +0100 Subject: [PATCH 1/5] Update Project 1 --- Ironhack Payments - Project 1.twb | 1566 +++++++++++++++++ main.ipynb | 156 ++ main.py | 347 ++++ ...act - cash request - data analyst.csv.csv} | 0 tableau/frequency_of_usage.csv | 14 + tableau/incident_rate.csv | 14 + tableau/loss_revenue.csv | 9 + tableau/revenue_per_month.csv | 8 + 8 files changed, 2114 insertions(+) create mode 100644 Ironhack Payments - Project 1.twb create mode 100644 main.ipynb create mode 100644 main.py rename project_dataset/{extract - cash request - data analyst.csv => extract - cash request - data analyst.csv.csv} (100%) create mode 100644 tableau/frequency_of_usage.csv create mode 100644 tableau/incident_rate.csv create mode 100644 tableau/loss_revenue.csv create mode 100644 tableau/revenue_per_month.csv diff --git a/Ironhack Payments - Project 1.twb b/Ironhack Payments - Project 1.twb new file mode 100644 index 0000000..17a488a --- /dev/null +++ b/Ironhack Payments - Project 1.twb @@ -0,0 +1,1566 @@ + + + + + + <_.fcp.AccessibleZoneTabOrder.true...AccessibleZoneTabOrder /> + <_.fcp.AnimationOnByDefault.true...AnimationOnByDefault /> + + <_.fcp.MarkAnimation.true...MarkAnimation /> + <_.fcp.ObjectModelEncapsulateLegacy.true...ObjectModelEncapsulateLegacy /> + <_.fcp.ObjectModelExtractV2.true...ObjectModelExtractV2 /> + <_.fcp.ObjectModelTableType.true...ObjectModelTableType /> + <_.fcp.SchemaViewerObjectModel.true...SchemaViewerObjectModel /> + + + + <_.fcp.VConnDownstreamExtractsWithWarnings.true...VConnDownstreamExtractsWithWarnings /> + + + + + + + + <_.fcp.AnimationOnByDefault.false...style> + <_.fcp.AnimationOnByDefault.false..._.fcp.MarkAnimation.true...style-rule element='animation'> + <_.fcp.AnimationOnByDefault.false...format attr='animation-on' value='ao-on' /> + + + + + + + + + + + + + + + + + + + + <_.fcp.ObjectModelEncapsulateLegacy.false...relation connection='textscan.1bizpk41v7w8w2173h7000zxf07v' name='frequency_of_usage.csv' table='[frequency_of_usage#csv]' type='table'> + + + + + + <_.fcp.ObjectModelEncapsulateLegacy.true...relation type='collection'> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + [frequency_of_usage.csv] + + Count + true + + "UTF-8" + "en_US" + "," + "true" + "en_US" + "" + + + + + 0 + [incident_rate.csv] + + Count + true + + "UTF-8" + "en_US" + "," + "false" + "en_US" + "" + + + + + 0 + [loss_revenue.csv] + + Count + true + + "UTF-8" + "en_US" + "," + "true" + "en_US" + "" + + + + + 0 + [revenue_per_month.csv] + + Count + true + + "UTF-8" + "en_US" + "," + "true" + "en_US" + "" + + + + created_at + 129 + [created_at] + [frequency_of_usage.csv] + created_at + 0 + string + Count + 1 + 1073741823 + true + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[frequency_of_usage.csv_FAC41C66C96D422BA9B41BF6D8A22966] + + + amount + 20 + [amount] + [frequency_of_usage.csv] + amount + 1 + integer + Sum + true + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[frequency_of_usage.csv_FAC41C66C96D422BA9B41BF6D8A22966] + + + F1 + 129 + [F1] + [incident_rate.csv] + F1 + 2 + string + Count + 1 + 1073741823 + true + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[incident_rate.csv_293B15D130604F669F3B7849576DBA94] + + + F2 + 5 + [F2] + [incident_rate.csv] + F2 + 3 + real + Sum + true + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[incident_rate.csv_293B15D130604F669F3B7849576DBA94] + + + created_at_y + 129 + [created_at_y] + [loss_revenue.csv] + created_at_y + 4 + string + Count + 1 + 1073741823 + true + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[loss_revenue.csv_86D572F8D9194E8DB3ABC93AD8AD5C22] + + + total_amount + 5 + [total_amount] + [loss_revenue.csv] + total_amount + 5 + real + Sum + true + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[loss_revenue.csv_86D572F8D9194E8DB3ABC93AD8AD5C22] + + + created_at_y + 129 + [created_at_y (revenue_per_month.csv)] + [revenue_per_month.csv] + created_at_y + 6 + string + Count + 1 + 1073741823 + true + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[revenue_per_month.csv_5BBE77F856F446DEA4E1FEDE2028DC77] + + + total_amount + 20 + [total_amount (revenue_per_month.csv)] + [revenue_per_month.csv] + total_amount + 7 + integer + Sum + true + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[revenue_per_month.csv_5BBE77F856F446DEA4E1FEDE2028DC77] + + + + + + + + + + + + + + + + + + + + + + <_.fcp.ObjectModelTableType.true...column caption='frequency_of_usage.csv' datatype='table' name='[__tableau_internal_object_id__].[frequency_of_usage.csv_FAC41C66C96D422BA9B41BF6D8A22966]' role='measure' type='quantitative' /> + <_.fcp.ObjectModelTableType.true...column caption='incident_rate.csv' datatype='table' name='[__tableau_internal_object_id__].[incident_rate.csv_293B15D130604F669F3B7849576DBA94]' role='measure' type='quantitative' /> + <_.fcp.ObjectModelTableType.true...column caption='loss_revenue.csv' datatype='table' name='[__tableau_internal_object_id__].[loss_revenue.csv_86D572F8D9194E8DB3ABC93AD8AD5C22]' role='measure' type='quantitative' /> + <_.fcp.ObjectModelTableType.true...column caption='revenue_per_month.csv' datatype='table' name='[__tableau_internal_object_id__].[revenue_per_month.csv_5BBE77F856F446DEA4E1FEDE2028DC77]' role='measure' type='quantitative' /> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <_.fcp.ObjectModelEncapsulateLegacy.false...relation name='frequency_of_usage.csv_FAC41C66C96D422BA9B41BF6D8A22966' table='[Extract].[frequency_of_usage.csv_FAC41C66C96D422BA9B41BF6D8A22966]' type='table' /> + <_.fcp.ObjectModelEncapsulateLegacy.true...relation type='collection'> + + + + + + + + + + + + + + + + + + created_at + 129 + [created_at] + [frequency_of_usage.csv_FAC41C66C96D422BA9B41BF6D8A22966] + created_at + 0 + frequency_of_usage.csv + string + Count + 13 + true + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[frequency_of_usage.csv_FAC41C66C96D422BA9B41BF6D8A22966] + + + amount + 20 + [amount] + [frequency_of_usage.csv_FAC41C66C96D422BA9B41BF6D8A22966] + amount + 1 + frequency_of_usage.csv + integer + Sum + 13 + true + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[frequency_of_usage.csv_FAC41C66C96D422BA9B41BF6D8A22966] + + + F1 + 129 + [F1] + [incident_rate.csv_293B15D130604F669F3B7849576DBA94] + F1 + 2 + incident_rate.csv + string + Count + 14 + true + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[incident_rate.csv_293B15D130604F669F3B7849576DBA94] + + + F2 + 5 + [F2] + [incident_rate.csv_293B15D130604F669F3B7849576DBA94] + F2 + 3 + incident_rate.csv + real + Sum + 8 + true + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[incident_rate.csv_293B15D130604F669F3B7849576DBA94] + + + created_at_y + 129 + [created_at_y] + [loss_revenue.csv_86D572F8D9194E8DB3ABC93AD8AD5C22] + created_at_y + 4 + loss_revenue.csv + string + Count + 8 + true + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[loss_revenue.csv_86D572F8D9194E8DB3ABC93AD8AD5C22] + + + total_amount + 5 + [total_amount] + [loss_revenue.csv_86D572F8D9194E8DB3ABC93AD8AD5C22] + total_amount + 5 + loss_revenue.csv + real + Sum + 8 + true + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[loss_revenue.csv_86D572F8D9194E8DB3ABC93AD8AD5C22] + + + created_at_y + 129 + [created_at_y (revenue_per_month.csv)] + [revenue_per_month.csv_5BBE77F856F446DEA4E1FEDE2028DC77] + created_at_y + 6 + revenue_per_month.csv + string + Count + 7 + true + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[revenue_per_month.csv_5BBE77F856F446DEA4E1FEDE2028DC77] + + + total_amount + 20 + [total_amount (revenue_per_month.csv)] + [revenue_per_month.csv_5BBE77F856F446DEA4E1FEDE2028DC77] + total_amount + 7 + revenue_per_month.csv + integer + Sum + 7 + true + <_.fcp.ObjectModelEncapsulateLegacy.true...object-id>[revenue_per_month.csv_5BBE77F856F446DEA4E1FEDE2028DC77] + + + + + + + + + <_.fcp.ObjectModelEncapsulateLegacy.true...object-graph> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <formatted-text> + <run bold='true' fontalignment='1' fontcolor='#4e79a7'><</run> + <run bold='true' fontalignment='1' fontcolor='#4e79a7'>Sheet Name</run> + <run bold='true' fontalignment='1' fontcolor='#4e79a7'>></run> + </formatted-text> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + "2019-11" + "2019-12" + "2020-01" + "2020-02" + "2020-03" + "2020-04" + "2020-05" + "2020-06" + "2020-07" + "2020-08" + "2020-09" + "2020-10" + "2020-11" + + + + + + + + + + + + + + Month - Year: + ]]> + Æ + Number of Transactions: + ]]> + + + + + [federated.0gap6dt0o22ay613fan5l0jigjn1].[sum:amount:qk] + [federated.0gap6dt0o22ay613fan5l0jigjn1].[none:created_at:nk] +
+ +
+ + + + <formatted-text> + <run bold='true' fontalignment='1' fontcolor='#4e79a7'><</run> + <run bold='true' fontalignment='1' fontcolor='#4e79a7'>Sheet Name</run> + <run bold='true' fontalignment='1' fontcolor='#4e79a7'>></run> + </formatted-text> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + "2019-11" + "2019-12" + "2020-01" + "2020-02" + "2020-03" + "2020-04" + "2020-05" + "2020-06" + "2020-07" + "2020-08" + "2020-09" + "2020-10" + "2020-11" + + + + [federated.0gap6dt0o22ay613fan5l0jigjn1].[none:F1:nk] + + + + + + + + + + + + + Month - Year: + ]]> + Æ + Percentage: + ]]> + + + + + [federated.0gap6dt0o22ay613fan5l0jigjn1].[sum:F2:qk] + [federated.0gap6dt0o22ay613fan5l0jigjn1].[none:F1:nk] +
+ +
+ + + + <formatted-text> + <run bold='true' fontalignment='1' fontcolor='#4e79a7'><</run> + <run bold='true' fontalignment='1' fontcolor='#4e79a7'>Sheet Name</run> + <run bold='true' fontalignment='1' fontcolor='#4e79a7'>></run> + </formatted-text> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Created At: + ]]> + Æ + Total Amount: + ]]> + + + + + [federated.0gap6dt0o22ay613fan5l0jigjn1].[sum:total_amount:qk] + [federated.0gap6dt0o22ay613fan5l0jigjn1].[none:created_at_y:nk] +
+ +
+ + + + <formatted-text> + <run bold='true' fontalignment='1' fontcolor='#4e79a7'><</run> + <run bold='true' fontalignment='1' fontcolor='#4e79a7'>Sheet Name</run> + <run bold='true' fontalignment='1' fontcolor='#4e79a7'>></run> + </formatted-text> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Month - Year: + ]]> + Æ + Total Revenue: + ]]> + + + + + [federated.0gap6dt0o22ay613fan5l0jigjn1].[sum:total_amount (revenue_per_month.csv):qk] + [federated.0gap6dt0o22ay613fan5l0jigjn1].[none:created_at_y (revenue_per_month.csv):nk] +
+ +
+
+ + +