diff --git a/workflow/scripts/exposure/plot_exposure_distributions.py b/workflow/scripts/exposure/plot_exposure_distributions.py index df24b877..f27b4816 100644 --- a/workflow/scripts/exposure/plot_exposure_distributions.py +++ b/workflow/scripts/exposure/plot_exposure_distributions.py @@ -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)