From ecd1d66dd2a07945acca3f5b7afd9c7837d7b75d Mon Sep 17 00:00:00 2001 From: Chris Leaman Date: Mon, 11 Mar 2019 14:37:27 +1100 Subject: [PATCH] Fix typos --- src/analysis/observed_storm_impacts.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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(