Skip to content

Commit

Permalink
update city power schedules to 2023 rev 0
Browse files Browse the repository at this point in the history
  • Loading branch information
declan-fitzpatrick authored and beyarkay committed Nov 8, 2023
1 parent 0cd9892 commit 59ff68f
Show file tree
Hide file tree
Showing 17 changed files with 11,304 additions and 8,204 deletions.
1,217 changes: 707 additions & 510 deletions generated/city-power-1.csv

Large diffs are not rendered by default.

1,184 changes: 691 additions & 493 deletions generated/city-power-10.csv

Large diffs are not rendered by default.

1,205 changes: 698 additions & 507 deletions generated/city-power-11.csv

Large diffs are not rendered by default.

1,216 changes: 704 additions & 512 deletions generated/city-power-12.csv

Large diffs are not rendered by default.

1,214 changes: 706 additions & 508 deletions generated/city-power-13.csv

Large diffs are not rendered by default.

1,211 changes: 701 additions & 510 deletions generated/city-power-14.csv

Large diffs are not rendered by default.

1,200 changes: 698 additions & 502 deletions generated/city-power-15.csv

Large diffs are not rendered by default.

1,247 changes: 721 additions & 526 deletions generated/city-power-16.csv

Large diffs are not rendered by default.

1,195 changes: 692 additions & 503 deletions generated/city-power-2.csv

Large diffs are not rendered by default.

1,230 changes: 713 additions & 517 deletions generated/city-power-3.csv

Large diffs are not rendered by default.

1,205 changes: 697 additions & 508 deletions generated/city-power-4.csv

Large diffs are not rendered by default.

1,230 changes: 710 additions & 520 deletions generated/city-power-5.csv

Large diffs are not rendered by default.

1,264 changes: 733 additions & 531 deletions generated/city-power-6.csv

Large diffs are not rendered by default.

1,245 changes: 719 additions & 526 deletions generated/city-power-7.csv

Large diffs are not rendered by default.

1,227 changes: 711 additions & 516 deletions generated/city-power-8.csv

Large diffs are not rendered by default.

1,214 changes: 701 additions & 513 deletions generated/city-power-9.csv

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/parse_city_power.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
def main():
# Get the path which the pdf should be saved to
path = f"generated/citypower.pdf"
url = "https://www.citypower.co.za/customers/Load%20Shedding%20Related%20Documents/City%20Power%20load%20shedding%20schedule%20February%202021.pdf"
url = "https://www.citypower.co.za/customers/Load%20Shedding%20Related%20Documents/City%20Power%20New%20Load%20Shedding%20Monthly%20Schedule.pdf"
if not os.path.exists(path):
r = requests.get(url, stream=True)
with open(path, "wb") as f:
Expand All @@ -22,7 +22,7 @@ def main():
pdf = pd.concat(pdf_pages)
# Drop unused columns
pdf = pdf.drop(
["City Power Load Shedding Schedule February 2021", "Unnamed: 0"], axis=1
["City Power Schedule, Rev 0", "Unnamed: 0"], axis=1
)
# Rename columns to be 'stage', 1, 2, 3,4 ...., 31
pdf.columns = ["stage"] + list(range(1, 32))
Expand Down

0 comments on commit 59ff68f

Please sign in to comment.