Fix typos

develop
Chris Leaman 6 years ago
parent 7e09b9a084
commit ecd1d66dd2

@ -231,8 +231,8 @@ def overwrite_impacts(df_observed_impacts, df_raw_features):
df_observed_impacts.update(df_overwritten_impacts) df_observed_impacts.update(df_overwritten_impacts)
# Replace 'none' with nan # Replace 'none' with nan
df_overwritten_impacts.loc[ df_observed_impacts.loc[
df_overwritten_impacts.storm_regime == "unknown", "storm_regime" df_observed_impacts.storm_regime == "unknown", "storm_regime"
] = np.nan ] = np.nan
return df_observed_impacts return df_observed_impacts
@ -343,8 +343,8 @@ def create_observed_impacts(
ele=0, ele=0,
col_name="width_msl_poststorm", 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_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('df_width_msl_change_pct') 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 # Join beach width change onto observed impacts dataframe
df_observed_impacts = pd.concat( df_observed_impacts = pd.concat(

Loading…
Cancel
Save