4.8. new_effects module

new_effects.calc_new_effects(settings, df, id_cols)[source]
Note:

This function calculates new effects for the effects file.

Parameters:

settings: The SetInputs class.

df: A DataFrame based on an effects report.

id_cols: The identifying columns to use as keys for the dictionary that is created in function.

Return:

The passed DataFrame with new effects.

new_effects.calc_new_fatality_metrics(df)[source]
Note:

This function calculates ‘Fatality risk per billion VMT’ and removes ‘Fatalities from Rebound.’

Parameters:

df: A DataFrame containing ‘Fatalities’, ‘Fatalities from Rebound’ and ‘kVMT.’

Return:

The passed DataFrame without ‘Fatalities from Rebound’ and with ‘Fatality risk per billion VMT.’