From 28ad83405f5c2d2b56673097d89cc7d4f696a567 Mon Sep 17 00:00:00 2001 From: Dan Howe Date: Mon, 9 May 2022 14:15:49 +0200 Subject: [PATCH] Copy source dataframe --- probabilistic-analysis/probabilistic_assessment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/probabilistic-analysis/probabilistic_assessment.py b/probabilistic-analysis/probabilistic_assessment.py index 60fcd0a..848c4ca 100644 --- a/probabilistic-analysis/probabilistic_assessment.py +++ b/probabilistic-analysis/probabilistic_assessment.py @@ -471,7 +471,7 @@ def process(beach_name, beach_scenario, n_runs, start_year, end_year, pbar_year.set_description('Year: {}'.format(year)) # Create output dataframe - df_out = df_in[['beach', 'block', 'profile']] + df_out = df_in[['beach', 'block', 'profile']].copy() df_out['block'] = df_out['block'].astype(str) # Add info on non-erodable sections