Skip to content

Commit aa4634b

Browse files
authored
Update rentsense_to_refined_and_landing.py
Changing the format of the end of tenancy date
1 parent bbe9bb3 commit aa4634b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/jobs/rentsense_to_refined_and_landing.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,11 @@
560560
F.to_date(col("startOfTenureDate"), "yyyy-MM-dd").alias("date"),
561561
).drop("startOfTenureDate").withColumnRenamed("date", "startOfTenureDate")
562562

563+
accounts.select(
564+
col("endoftenuredate"),
565+
F.to_date(col("endoftenuredate"), "yyyy-MM-dd").alias("date"),
566+
).drop("endoftenuredate").withColumnRenamed("date", "endoftenuredate")
567+
563568
accounts = accounts.drop("uh_ten_ref")
564569

565570
accounts = accounts.withColumn("prop_ref", F.trim(F.col("property_reference")))

0 commit comments

Comments
 (0)