Skip to content

Commit

Permalink
Drop superfluous column prior to plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-fred committed Nov 30, 2023
1 parent d97d2d6 commit ce5554b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/scripts/exposure/plot_exposure_distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def plot_event_distributions(
exposure_all_storms = pd.read_parquet(snakemake.input.exposure_by_event)

logging.info("Aggregating (sum exposure) by event")
per_event = exposure_all_storms.groupby("event_id").sum()
per_event = exposure_all_storms.drop(columns=["edge"]).groupby("event_id").sum()

logging.info("Plotting event distributions")
os.makedirs(snakemake.output.country_event_distributions)
Expand Down

0 comments on commit ce5554b

Please sign in to comment.