diff --git a/src/analysis/observed_storm_impacts.py b/src/analysis/observed_storm_impacts.py index fc3d639..541613e 100644 --- a/src/analysis/observed_storm_impacts.py +++ b/src/analysis/observed_storm_impacts.py @@ -231,8 +231,8 @@ def overwrite_impacts(df_observed_impacts, df_raw_features): df_observed_impacts.update(df_overwritten_impacts) # Replace 'none' with nan - df_overwritten_impacts.loc[ - df_overwritten_impacts.storm_regime == "unknown", "storm_regime" + df_observed_impacts.loc[ + df_observed_impacts.storm_regime == "unknown", "storm_regime" ] = np.nan return df_observed_impacts @@ -343,8 +343,8 @@ def create_observed_impacts( ele=0, col_name="width_msl_poststorm", ) - df_width_msl_change_m = (df_width_msl_poststorm - df_width_msl_prestorm).rename('df_width_msl_change_m') - df_width_msl_change_pct = (df_width_msl_change_m / df_width_msl_prestorm * 100).rename('df_width_msl_change_pct') + df_width_msl_change_m = (df_width_msl_poststorm - df_width_msl_prestorm).rename('width_msl_change_m') + df_width_msl_change_pct = (df_width_msl_change_m / df_width_msl_prestorm * 100).rename('width_msl_change_pct') # Join beach width change onto observed impacts dataframe df_observed_impacts = pd.concat(