Skip to content

Commit

Permalink
Update rentsense_to_refined_and_landing.py
Browse files Browse the repository at this point in the history
Adding non-secure properties
  • Loading branch information
daroclark authored Jan 16, 2024
1 parent 134cec3 commit d02c2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/jobs/rentsense_to_refined_and_landing.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@

#data loads - takes all records that have no end date and secure tenancies, intro and mesne tenancies are added after as there are some tenancy ids with both
accounts = df2.filter("endoftenuredate is NULL and paymentreference<>''")
accounts_s = accounts.where(col("description").isin({"Secure"}))
accounts_s = accounts.where(col("description").isin({"Secure","Non-Secure"}))
accounts_int = accounts.where(col("description").isin({"Introductory","Mense Profit Ac"}))
accounts_int = accounts_int.join(accounts_s,accounts_int.paymentreference == accounts_s.paymentreference,'leftanti') #remove the paymentreference in the other dataset

Expand Down

0 comments on commit d02c2a2

Please sign in to comment.