Skip to content

Commit aba0b20

Browse files
committed
Order outcode files by postcode and uprn
1 parent a8aea41 commit aba0b20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cdk/shared_components/lambdas/first_letter_to_outcode_parquet/first_letter_to_outcode_parquet.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def handler(event, context):
7575
print(
7676
f"At least one UPRN in {outcode} has an election, writing an empty file"
7777
)
78+
outcode_df.sort(by=["postcode", "uprn"])
7879
outcode_df.write_parquet(outcode_path)
7980
else:
8081
print(

0 commit comments

Comments
 (0)