This website https://epc.opendatacommunities.org/ has closed down on 30th May 2026

So we downloaded the data and moved everything to S3 ( s3://retrofit-data-dev/histroical_epc/0_master_backup/ )

This scripts assumes the following:

1) You downloaded the master copy, uncompressed it and set it to a path so we can read the csv


The script funciton is:

1) reads csv for all data, seperate each iteration by postcode
2) compresses the csv and save it in the location
3) location s3://retrofit-data-dev/historical_epc/<postcode>/compressed data.csv