Skip to content

Commit

Permalink
Fix raw data script
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjm committed Jun 10, 2024
1 parent 20fc6d0 commit c777530
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions use_cases/2020_12/scripts/raw_data_proc.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def read_workbook(file_path: Path) -> dict:
io=DATA_DIR.joinpath(file_path.name),
sheet_name=None,
index_col=0,
engine='xlrd'
# engine='xlrd'
)


Expand Down Expand Up @@ -83,7 +83,8 @@ def main():
for state in ["OH", "IL"]:
for i, key in enumerate(YEARS):
output_path = TRAIN_DIR.joinpath(case, state, f"Data_{i+1}.csv")
final_dat.loc[state, key, :].to_csv(
state_year_data = final_dat.loc[(state, key, slice(None)), :]
state_year_data.to_csv(
path_or_buf=output_path,
index_label=['STATE', 'YEAR', 'HOUR']
)
Expand Down

0 comments on commit c777530

Please sign in to comment.