From 9c7e7ecdd94056d3c5b8be055a6b8465cc402c27 Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Tue, 29 Jul 2025 12:01:53 +0000 Subject: [PATCH] save --- etl/month_end_automation_wave_2_no_8.py | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/etl/month_end_automation_wave_2_no_8.py b/etl/month_end_automation_wave_2_no_8.py index 653c543..62950e3 100644 --- a/etl/month_end_automation_wave_2_no_8.py +++ b/etl/month_end_automation_wave_2_no_8.py @@ -15,13 +15,13 @@ rate_card_data = { "job_type": [ "RA", "ATT", "Coordination Stage 1 v1", "Coordination Stage 1 v2 remodel", "Coordination Stage 1 v3 remodel", "Design Archetype Complex", "Design Archetype Simple", "Design Repetitive Simple", "Coordination Stage 2", "Lodgement phase 1", "Full lodgement phase 2", - "Post EPC", "Post ATT", "retrofit evaluation", + "Post EPR", "Post EPC", "Post ATT", "retrofit evaluation", "RA no show", "ATT no show", "post EPC no show" ], "rate": [ 259, 125, 280, 125, 125, 650, 415, 195, 175, 135, - 120, 85, 125, 60, + 120, "Post EPR Please Marianne", 85, 125, 60, 25, 25, 25 ] } @@ -138,9 +138,6 @@ design1 = get_df(design1, "design type", ["Design Repetitive Simple"]) design1 = get_df(design1, "design upload to sharepoint", ["done"], "Design Repetitive Simple") filtered_dfs.append(design1) -# TOOD Kevin: -# Check with Design checks and check with cor dination stage 2 checks - # Design revision # design2 = get_df(df, "design revision invoice", [ # "Rev. A to invoice".lower(), @@ -167,12 +164,12 @@ post_epc = get_df(df, "post epc status", ["uploaded"], "POST EPC") filtered_dfs.append(post_epc) -# # POST EPR -# post_epr = df[ -# df["post-epc status"].str.lower().isin(["post epr completed"]) -# ].copy() -# post_epr["job_type"] = "POST ATT" -# filtered_dfs.append(post_epr) +# POST EPR +post_epr = df[ + df["post epc status"].str.lower().isin(["post epr completed"]) +].copy() +post_epr["job_type"] = "POST ATT" +filtered_dfs.append(post_epr) # Post ATT post_att = get_df(df, "post att", ["post att uploaded"], "POST ATT") @@ -221,4 +218,4 @@ import datetime timestamp = datetime.datetime.now().strftime('%Y-%m-%d_%H-%M') attribute = ['address', 'client', 'job_type', 'rate'] -combined_with_rates[attribute].to_csv(f'NCHA SHDF 2.1 SBS_{timestamp}.csv', index=False) +combined_with_rates[attribute].to_excel(f'NCHA SHDF 2.1 SBS_{timestamp}.xlsx', index=False)